Chapter 2
Magic coins example. magic_coins1.py
Chapter 3
Favourite sports. favourite_sports.py
Furniture placeholder. furniture_placeholder.py
A list of lists. list_of_lists.py
A letter from Malcolm Dithering dithering_letter.py
Escaping quotes quote_escaping.py
The Wizard List wizard_list.py
Chapter 4
The turtle draws a square. turtle1.py
The turtle draws two parallel lines. turtle2.py
Chapter 5
If statements if_statements.py
Conditions in if-statements. conditions.py
Else-if (elif) statements. elif_statements.py
Strings and numbers. strings_and_numbers.py
Chapter 6
Five Hellos. five_hellos.py
Huge hairy pants (example 1). huge_hairy_pants1.py
Huge hairy pants (example 2). huge_hairy_pants2.py
Magic coins (example 2). magic_coins2.py
A while-loop with multiple conditions. while_loop_multiple_conditions.py
Looping through the wizard list. wizard_list_loop.py
Chapter 7
A function to calculate your savings. savings.py
Building a spaceship. spaceship_building.py
Test function (example 1). test_function1.py
Test function (example 2). test_function2.py
Your age function. your_age.py
Chapter 8
Giraffes (example 1). giraffes1.py
Giraffes (example 2). giraffes2.py
Three turtles. three_turtles.py
Chapter 9
Using the abs (absolute) function. abs_function.py
Using the exec (execute) function. exec_function.py
Using the len (length) function. len_function.py
Using the max and min functions. max_and_min.py
Using the range function. range_function.py
Using the sum function. range_function.py
Opening a file. opening_a_file.py
Writing to a file. writing_to_a_file.py
Chapter 10
Copying objects (example 1). copying_objects1.py
Copying objects (example 2). copying_objects1.py
Guess a random number. guess_a_number.py
Random desserts. random_desserts.py
Using the time module. timing_lots_of_numbers.py
Using pickle to save information. pickle_saving.py
Using pickle to load information. pickle_loading.py
Chapter 11
Drawing an eight point star. eight_point_star.py
Drawing a many
1