Exercise 1
A Good First Program
Warning!
If you skipped Exercise 0, then you are not doing this book right. Are you trying to use IDLE or an IDE? I said not to use one in Exercise 0, so you should not use one. If you skipped Exercise 0, please go back to it and read it.
You should have spent a good amount of time in Exercise 0 learning how to install Jupyter, run Jupyter, run the Terminal, and work with both of them. If you haven’t done that, then do not proceed. You will not have a good time. This is the only time I’ll start an exercise with a warning that you should not skip or get ahead of yourself.
Type the following text into a Jupyter cell:
1 print("Hello World!")
2 print("Hello Again" ...
Get Learn Python the Hard Way: A Deceptively Simple Introduction to the Terrifyingly Beautiful World of Computers and Data Science, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.