Skip to content

Commit

Permalink
version 2
Browse files Browse the repository at this point in the history
version 2 offers floats and multi-inputs
  • Loading branch information
neverfriendme authored Jul 28, 2024
1 parent ba33570 commit c55e8b5
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions Shape-maker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from turtle import *
print("Shape maker v2 pre-release")
WF = input("Whole numbers or Float numbers: ")
print("Shape maker v2")
print("Whole\nFloat\nMulti-input")
WF = input("")

if WF == "Whole":
Who = int(input("Who: "))
Expand All @@ -12,7 +13,7 @@
right(Who2)
left(Who)
right(Who2)
if WF == "Float":
elif WF == "Float":
Flo = float(input("Flo: "))
Flo2 = float(input("Flo2: "))
playing = True
Expand All @@ -22,6 +23,18 @@
right(Flo2)
left(Flo)
right(Flo2)
elif WF == "Multi-input":
Who3 = int(input("Who: "))
Who4 = int(input("Who2: "))
Flo3 = float(input("Flo: "))
Flo4 = float(input("Flo2: "))
playing = True
if playing == True:
while True:
forward(Who3)
right(Who4)
left(Flo3)
right(Flo4)
else:
print("Invalid")
quit()

0 comments on commit c55e8b5

Please sign in to comment.