Skip to content

fix: Add missing variable and correct f-strings#1

Merged
zedshaw merged 1 commit intozedshaw:masterfrom
Brian-McHugh:ex6_edit
Feb 27, 2017
Merged

fix: Add missing variable and correct f-strings#1
zedshaw merged 1 commit intozedshaw:masterfrom
Brian-McHugh:ex6_edit

Conversation

@Brian-McHugh
Copy link
Contributor

See commented lines for changes to ex6.py:

  • add types_of_people variable assigment
  • change variable from 10 to types_of_people
  • add letter f before f-strings
  • omit unnecessary periods

See commented lines for changes to ex6.py:
- add types_of_people variable assigment
- change variable from 10 to types_of_people
- add letter f before f-strings
- omit unnecessary periods
@@ -1,13 +1,19 @@
x = f"There are {10} types of people."
# left out assignment for types_of_people mentioned in intro
types_of_people = 10
Copy link

@josharcheruk josharcheruk Feb 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't match up with the original Python 2 version and I believe the intent here is to indicate that you can add 'digit' strings (or whatever the Python 3.6 equivalent is).

It's not as clear as the original so may need some tweaking but I'm not sure adding it as a variable 'types_of_people' matches the original intent.

EDIT: I should clarify that this is necessarily a comment for @Brian-Leary. @zedshaw might simply need to clarify the intent of this exact part as to whether it's going to diverge slightly from the original.

@zedshaw
Copy link
Owner

zedshaw commented Feb 27, 2017

Great! Yeah, I think using a variable is better there, although PuffinBlue is right that I should show how to just put python expressions in there.

@zedshaw zedshaw merged commit 2a34a0a into zedshaw:master Feb 27, 2017
@Brian-McHugh Brian-McHugh deleted the ex6_edit branch February 28, 2017 18:53
@Brian-McHugh
Copy link
Contributor Author

@zedshaw, happy to help. Please include me in the running for the bug bounty. Would love to win a painting from you. Thanks!

@youknowone
Copy link
Contributor

Is this PR actually intended to be merged?

It seems comments are not about the actual codes but about patch's changes. Shouldn't it be deleted for learners?

youknowone pushed a commit to youknowone/learn-python3-thw-code-ko that referenced this pull request Dec 23, 2018
fix: Add missing variable and correct f-strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants