Oct-05-2020, 09:31 PM
I am trying to accumulate the numbers from the question and then print a reply based on whether the total is above or below 7, but I keep getting syntax errors. Any ideas? I need to have a float, loop, one operator symbol (+,-,*) an accumulation pattern,and a conditional statement comparing numbers.
score=0 questions = ['How long can your assignment wait until its done?', 'How good are the conditions?','Will you have time to study after you ski?'] #rate each question on a scale of 1-5 for question in questions: rating=float(input(question)) score += rating if score is >= 7: print("") elif rating is (<=7): print("") else: print("") #calculate the weighted average score #If score is 7 or above, print you should study, if score is below 7, pring you should ski