all_days = ["Monday", Tuesday", "Wednesday", "Thursday","Friday", "Saturday", "Sunday") total_rain = 0 total_weeks = 0 # number of weeks while True: try: total_weeks = int(input("Enter number of weeks for which rainfall should be calculated ")) except NameError: print("Number of weeks must be an interger") else: if total_weeks < 1: print("Number of weeks must be at least 1") else: break ## rain by days of the week for weeks in range(total_weeks): for days in all_days: print("enter the rain for:",(days(0)) + 1 ), "in" (range(total_weeks))I've just started an into to programming course and its all online and finding it SO hard to get support for the uni, so if someone would be able to point me in the direction of what I'm trying to do!
I need to ask a user to tell me how many weeks they want to know the average rainfall for (which I've gotten to work)
the system then needs to ask them for everyday of the week, of all weeks requested how many mm of rain fall on that day and then add up the value of each day to find averages. I cannot for the life of me make the day and weeks loop through :(
Please assist


