diff --git a/StoryD7.py b/StoryD7.py index 078c3f4..4a2e018 100644 --- a/StoryD7.py +++ b/StoryD7.py @@ -78,7 +78,7 @@ def dansStory(): Ans6 = input("Are you going to 'risk your life to save your brother', or 'stay where you are and keep holding onto safety'") print("") print("After the decision...") -dansStory() +#dansStory() # gigs starts @@ -105,13 +105,19 @@ def main(): print(story.sept) else: pass - clear() - print(story.decision) - a = int(input('Please select 1 or 2...')) - if a == 1: - print(story.leave) - elif a == 2: - print(story.back) + isNumber = False + while isNumber == False: + try: + clear() + print(story.decision) + a = int(input('Please select 1 or 2...')) + if a == 1: + print(story.leave) + elif a == 2: + print(story.back) + isNumber = True + except ValueError: + pass print(story.decision2) print(story.con) main() diff --git a/__pycache__/story.cpython-38.pyc b/__pycache__/story.cpython-38.pyc index e42dddf..7bff86d 100644 Binary files a/__pycache__/story.cpython-38.pyc and b/__pycache__/story.cpython-38.pyc differ