Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Switch to file-based code execution in chapter 4 (intro to python) #207

Closed
bmispelon opened this issue Dec 1, 2014 · 1 comment · Fixed by #210
Closed

Switch to file-based code execution in chapter 4 (intro to python) #207

bmispelon opened this issue Dec 1, 2014 · 1 comment · Fixed by #210

Comments

@bmispelon
Copy link
Contributor

With functions and loops, the end of chapter 4 gets a bit tedious when you make a mistake.

I think it'd be beneficial to introduce the reader to typing the code in a text file and then executing it with python the_file.py.
This would also tie in better with the rest of the tutorial and show them that typing things in the shell or in a text file is basically the same.

To me, a good switching point might be right before introducing the print() function (whose utility is way more obvious when you run code from a file).

It would also allow us to format dictionaries with one key: value pair per line which might make things more clear.

@bmispelon
Copy link
Contributor Author

Silly me, this has already been mentionned: #190.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant