From 1d8cc36b0a2defae9ccdee718a2bc7b7246d0580 Mon Sep 17 00:00:00 2001 From: tstst334 Date: Tue, 30 Jul 2019 07:23:58 -0700 Subject: [PATCH] edit user IO --- user_IO.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 user_IO.py 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