Upload code
This commit is contained in:
19
ExamStuff/Aufgabe 7 Prfg Spirale.py
Executable file
19
ExamStuff/Aufgabe 7 Prfg Spirale.py
Executable file
@@ -0,0 +1,19 @@
|
||||
from turtle import*
|
||||
shape("turtle")
|
||||
color("blue")
|
||||
|
||||
distance = 10
|
||||
pu()
|
||||
|
||||
for i in range(2):
|
||||
fd(distance)
|
||||
rt(20)
|
||||
orientation = heading()
|
||||
stamp()
|
||||
while orientation > 0:
|
||||
orientation = heading()
|
||||
fd(distance)
|
||||
rt(20)
|
||||
stamp()
|
||||
distance += 2
|
||||
print(orientation)
|
||||
Reference in New Issue
Block a user