Think Python: How to Think Like a Computer Scientist

(singke) #1
bob.lt(90)
bob.fd(100)

When you run this program, you should see bob move east and then north, leaving two


line segments behind.


Now modify the program to draw a square. Don’t go on until you’ve got it working!

Free download pdf