From 6348c8500f9fbf325dd8a49a069c46493660be07 Mon Sep 17 00:00:00 2001 From: Emily Lycett Date: Fri, 2 Oct 2020 13:14:56 +0100 Subject: [PATCH] remotes/origin/emily Please work I just want the grammar changes to go through --- .vs/slnx.sqlite | Bin 90112 -> 90112 bytes ...InteractiveStoryPythonConversionProject.py | 33 ++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 InteractiveStoryPythonConversionProject/InteractiveStoryPythonConversionProject.py diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index c7bf0c100d22915efc56b330b4af2be4e9d58ddb..56ed55cdffe9436b18fefb9ba33dbb3d11da8877 100644 GIT binary patch delta 489 zcmY+Av1?ON6voea_rCjHuIc^yNJNZE5>VS}nusDragnx&gGP%^71E#-3fiUW`nouj zF6tee1o0nu>VvwpG;=keLqVJr6dmlM7Hi4iyA=odmXC7|=lk)^cl`N|e}5lG5B868 z^nB`SgQZ<+oMD~*Xhi)*WfH;$Ch!;wCcz$)m?W)M9vPclJQ!k$#;$Wt*~{^u70qIJ zN-Jvr9UO_g@ZI$5mBOJrCp|@z6e|0+H4wVta&LFlE;NTjA{zO(v7ejeqC%eV8!xel zYsh2ODa-q5Y`(QuqDvz#%go)J4UUT$K0kZAF531|e3Z5AwrZt76u5qOPWFj1PmG@( zyD(nAbwgw^wJiKZ_I{nv!xwzVI=d&VXpej35|H&JfZnH=z;*H4(I$#WYwd!n9CmJ8s>j zccB|0TD5!WgK48U?xHXV5~5X$f)++lNd_)DcV0*o2M&k-o_o&s-@DjRiyigo44UP$ z<7hVS-l?Fl?aCPH -1: + moduleProgressList.append(y) #Adds the current module to the list of travelled modules + text = story[y] + print(text) #Displays module text based on y value recieved + x = input("Your choice is...") + if x.isdigit() == False: #This determines whether the value input is a digit + while x.isdigit() ==False: + print("This is an invalid input") + x = input("Your choice is...") + choiceNumber = int(x) + y = choiceNumber #y is the target module as chosen by the user input + else: + while y != int or ( y < 0): + print("This is an invalid input") + x = input("Your choice is...") + if x.isdigit() == False: + while x.isdigit() ==False: + print("This is an invalid input") + x = input("Your choice is...") + choiceNumber = int(x) + y = choiceNumber #This ensures that only valid numbers + + + + + \ No newline at end of file