Update ch1/01/r7.py