Format
There really is no hope of making this code even half-way decent without spending the time to rewrite them all properly. Don't want to do any of that
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from turtle import*
|
||||
from turtle import *
|
||||
|
||||
shape("turtle")
|
||||
color("blue")
|
||||
|
||||
@@ -16,4 +17,4 @@ for i in range(2):
|
||||
rt(20)
|
||||
stamp()
|
||||
distance += 2
|
||||
print(orientation)
|
||||
print(orientation)
|
||||
|
||||
@@ -3,4 +3,4 @@ minutes = seconds // 60
|
||||
seconds_rest = minutes % 60
|
||||
hours = minutes // 60
|
||||
minutes_rest = minutes % 60
|
||||
print(hours, minutes_rest, seconds_rest)
|
||||
print(hours, minutes_rest, seconds_rest)
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
from turtle import*
|
||||
from turtle import *
|
||||
import math
|
||||
|
||||
rt(45)
|
||||
go = 1
|
||||
color("red")
|
||||
|
||||
distance_in = int(numinput("Wie weit darf sich die Turtle vom Mittelpunkt entfernen??", " Gerade Zahl von 1-unendlich ",300,minval=1))
|
||||
distance_in = int(
|
||||
numinput(
|
||||
"Wie weit darf sich die Turtle vom Mittelpunkt entfernen??",
|
||||
" Gerade Zahl von 1-unendlich ",
|
||||
300,
|
||||
minval=1,
|
||||
)
|
||||
)
|
||||
|
||||
for i in range(4):
|
||||
go = 1
|
||||
@@ -20,9 +27,9 @@ for i in range(4):
|
||||
else:
|
||||
if distance <= -distance_in:
|
||||
go = 0
|
||||
|
||||
|
||||
else:
|
||||
go = 1
|
||||
|
||||
|
||||
bk(distance_in)
|
||||
rt(90)
|
||||
rt(90)
|
||||
|
||||
Reference in New Issue
Block a user