Skip to content
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

Add a brief description of the print statement #101

Closed
wants to merge 1 commit into from

Conversation

hjwp
Copy link
Contributor

@hjwp hjwp commented Aug 5, 2014

We start using print later on, but it hasn't been explained. This shows why you might want to use it instead of just letting the interpreter give you the repr of a variable.

Could go into more details on, eg, backslash-escaping of quotes, or print ('more\nthan\none\nline')...

We start using print later on, but it hasn't been explained.  This shows why you might want to use it instead of just letting the interpreter give you the repr of a variable.

Could go into more details on, eg, backslash-escaping of quotes, or print ('more\nthan\none\nline')...

Try this:

>>> message = 'hello'
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer using name = 'Ola' rather than the traditional hello world.

I've found that it makes the participants subsitute their own name instead and they're more engaged as a result.

@bmispelon
Copy link
Contributor

Merged in f89a5f7.

I changed message to name like I explained in my comment and edited the commit message slightly.
Hope that's OK.

Thanks again!

@bmispelon bmispelon closed this Aug 8, 2014
@hjwp hjwp deleted the patch-2 branch August 8, 2014 19:17
@hjwp
Copy link
Contributor Author

hjwp commented Aug 8, 2014

:)

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.

2 participants