February 2024
Beginner
352 pages
8h 16m
English
By now you should realize the pattern for this book is to use more than one exercise to teach you something new. I start with code that you might not understand, and then more exercises explain the concept. If you don’t understand something now, you will later as you complete more exercises. Write down what you don’t understand, and keep going.
Listing 9.1: ex9.py
1 # Here's some new strange stuff, remember type it exactly.
2
3 days = "Mon Tue Wed Thu Fri Sat Sun"
4 months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
5
6 print("Here are the days: ", days)
7 print("Here are the months: ", months)
8
9 print("""
10 There's something going on here.
11 With the three double-quotes.
12 Read now
Unlock full access