Aug-24-2017, 03:23 PM

Hello everyone, my name is Zack and I’m new to python I’ve started writing very basic programs to get my head around various python functions but now I’m stepping it up a level by trying to write a slightly more complex program, but i have quickly gotten stuck... here is what the program is supposed to do...
It asks the user “how many hours of homework have you done today” and then uses an if statement to determine what the output should be, that works fine but the problem is I want to have the program ask this question for all seven days of the week from Monday to Sunday and then add up the total and then go to the if statement depending on whether or not the total amounts to the required 3 hours per day, I’ve tried just about everything in my admittedly very limited tool box to make the program do this and it just won’t work, it just prints the second if statement every time. I know it’s probably something simple but I've been working on it for nearly two weeks and can’t figure it out.
Does anyone have any suggestions on how to make the program do what I want or anything I might be missing?
I've included the code so you can see how I've done it and hopefully can tell me what I've done wrong.
Any and all help is greatly appreciated
Thanks
Zack
my code hereprint("How many hours of HomeWork did you do today? (Monday):")
input=int(raw_input())
print("How many hours of HomeWork did you do today? (Tuesday):")
input=int(raw_input())
print("How many hours of HomeWork did you do today? (Wednesday):")
input=int(raw_input())
print("How many hours of HomeWork did you do today? (Thursday):")
input=int(raw_input())
print("How many hours of HomeWork did you do today? (Friday):")
input=int(raw_input())
print("How many hours of HomeWork did you do today? (Saturday):")
input=int(raw_input())
print("How many hours of HomeWork did you do today? (Sunday):")
input=int(raw_input())
if input >=21:
print("Well done, keep up the good work!")
if input <21:
print ("Not good enough, you must try harder!!")