-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample code for the article on string formatting #529
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, @lpozo
I have two small comments that you can have a look at.
|
||
a = 5 | ||
b = 10 | ||
sum_template = "{0} plus {1} is {2}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to move the templates to the top here (and in line 11), similarly to how we did in the tutorial?
"Progress Report. Student: {name}" | ||
"Average: {average:.2f} / 100" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we can remove the quotes here.
Where to put new files:
my-awesome-article
How to merge your changes: