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,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