Below we have already started to build a house. To practice incremental programming, try drawing the rest of the house. Each time you draw something new on the screen, run the program to see if it executed in the way that you expected!
Answers
Answer:
Turtle” is a python feature like a drawing board, which lets you command a turtle to draw all over it!
You can use functions like turtle.forward(...) and turtle.left(...) which can move the turtle around.
Before you can use turtle, you have to import it. We recommend playing around with it in the interactive interpreter first, as there is an extra bit of work required to make it work from files. Just go to your terminal and type:
import turtle
_images/default.png
Note
Not seeing anything on Mac OS? Try issuing a command like turtle.forward(0) and looking if a new window opened behind your command line.
Note
Do you work with Ubuntu and get the error message “No module named _tkinter”? Install the missing package with sudo apt-get install python3-tk
Note
While it might be tempting to just copy and paste what’s written on this page into your terminal, we encourage you to type out each command. Typing gets the syntax under your fingers (building that muscle memory!) and can even help avoid strange syntax errors.
Answer:
yes dear
Explanation:
Below we have already started to build a house. To practice incremental programming, try drawing the rest of the house. Each time you draw something new on the screen, run the program to see if it executed in the way that you expected!