diff --git a/user_IO.py b/user_IO.py new file mode 100644 index 0000000..e2e62a6 --- /dev/null +++ b/user_IO.py @@ -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") \ No newline at end of file