Modules, JSON and files · exercise 1 of 1 · free preview
The game so far · chapter 15
Right now: Pip cannot save its progress.
This chapter's mission: Saves and loads the game. Work through the exercises, then your own code brings it to life.
A module is a ready-made toolbox. import math gives you math.sqrt(), math.pi and more.
Import math and print the square root of 16 with math.sqrt.