Remove .md and image files and move python files into main chapter folders
This commit is contained in:
parent
5978779a9a
commit
67806dab6a
159 changed files with 0 additions and 4562 deletions
37
thinkcspy/Chapter-4-Exercises/problem10.py
Normal file
37
thinkcspy/Chapter-4-Exercises/problem10.py
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 4
|
||||
# Problem 10
|
||||
|
||||
import turtle
|
||||
wn = turtle.Screen()
|
||||
|
||||
wn.bgcolor("lightgreen")
|
||||
|
||||
stella = turtle.Turtle()
|
||||
stella.color("blue")
|
||||
stella.shape("turtle")
|
||||
|
||||
avery = turtle.Turtle()
|
||||
avery.color("blue")
|
||||
|
||||
stella.up()
|
||||
avery.up()
|
||||
|
||||
stella.stamp()
|
||||
|
||||
for i in range(12):
|
||||
stella.forward(100)
|
||||
stella.stamp()
|
||||
|
||||
avery.forward(70)
|
||||
avery.down()
|
||||
avery.forward(10)
|
||||
avery.up()
|
||||
|
||||
stella.forward(-100)
|
||||
avery.forward(-80)
|
||||
|
||||
stella.right(30)
|
||||
avery.right(30)
|
||||
|
||||
wn.exitonclick()
|
||||
Loading…
Reference in a new issue