Level 08: files and exceptions 0 of 9 activities solved
  1. 1. Saving data Not yet solved
  2. 2. School club Not yet solved
  3. 3. Shopping list Not yet solved
  4. 4. Attributes Not yet solved
  5. 5. Cookies Not yet solved
  6. 6. Morse code Not yet solved
  7. 7. ini file Not yet solved
  8. 8. Amino acids Not yet solved
  9. 9. Gamertag Not yet solved
Next series Level 09: two-dimension arrays and lists
Level 08: files and exceptions

5. Cookies

Sign in to hand in your solution and get feedback.

# Cookies program # ------------------------- # Subprograms # ------------------------- def read_cookie(): def write_cookie(theme): def change_theme(theme): # ------------------------- # Main program # ------------------------- theme = read_cookie() print("The current", theme)