These are excerpts shown as snippets from a main file named ex26_code.py. They generally only make sense in the context of the exercise text, but they're shown here separated by H2 heading tags for audible readers like NV Access.
import ex26
print("name", ex26.name) print("height", ex26.height)
from pprint import pprint pprint(ex26.__dict__)
print("height is", ex26.height) print("height is also", ex26.__dict__['height'])
print(f"I am currently {ex26.height} inches tall.") ex26.__dict__['height'] = 1000 print(f"I am now {ex26.height} inches tall.") ex26.height = 12 print(f"Oops, now I'm {ex26.__dict__['height']} inches tall.")
from pprint import pprint print(pprint.__doc__)
help(pprint)