Skip to content
Permalink
Browse files
Update interactivestory.py
  • Loading branch information
farthingt committed Oct 11, 2021
1 parent 6412a6b commit 137de873a2e01a605fbc3701a0030a48f4be0139
Showing 1 changed file with 6 additions and 8 deletions.
@@ -6,18 +6,16 @@ def printSlowly(text):
time.sleep(0.01)

def text(story1, story2):
loop = True
while loop:
choice = int(input())
if choice == 1:
choice = 0
while choice != "1" and choice != "2":
choice = input()
if choice == "1":
printSlowly(story1)
loop = False
elif choice == 2:
elif choice == "2":
printSlowly(story2)
loop = False
else:
print("INVALID INPUT, try again")
return(choice)
return(int(choice))



0 comments on commit 137de87

Please sign in to comment.