From f5259dfe8ef41cc9ab9ffc56be04291f87953e84 Mon Sep 17 00:00:00 2001 From: tstst334 Date: Tue, 30 Jul 2019 07:40:22 -0700 Subject: [PATCH] edit user IO --- user_IO.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/user_IO.py b/user_IO.py index e2e62a6..c53e577 100644 --- a/user_IO.py +++ b/user_IO.py @@ -12,5 +12,14 @@ def userinput(): 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 + subject = input("To which subject do you want to add the category? \n") + category = input("Which category do you want to add? \n") + rating = float(input("Rating? \n")) + return "input", subject, category, rating + elif todo == "grade": + subject = input("To which subject do you want to add the grade? \n") + category = input("To which category do you want to add it? \n") + grade = input("Grade? \n") + gradename = input("What's the name of the grade? \n") + return "input", subject, category, grade, gradename +