edit user IO

This commit is contained in:
tstst334
2019-07-30 07:23:58 -07:00
parent eb03c9965e
commit 1d8cc36b0a
+16
View File
@@ -0,0 +1,16 @@
def userinput():
print("Hi User, \n do you want to edit your grades?")
todo = input("Ok, do you want to see them or to edit them? [see/edit]\n")
if todo == "see":
print("Which subject do you want to know the information?")
subject = input()
return "output", subject
elif todo == "edit":
print("Do you want to add a subject, a category or a grade? [subject/category/grade]")
useradd = input()
if useradd == "subject":
subject = input("Which subject do you want to add? \n")
return "input", subject
elif todo == "category":
subject = input("Where do you want to add the category? \n")
category = input("Which category do you want ot add? \n")