Scenario 1 of 5 Score: 0 / 0
Exam PhraseWhat It MeansPython Construct
"The program should ask the user..."Use input()variable = input("prompt")
"...for each item in the list"Use a for loopfor item in list:
"...check whether..."Use an if statementif condition:
"...repeat until..."Use a while loopwhile not condition:
"...store the results"Use a list or variableresults = []
"...display a suitable message"Use print() with f-stringprint(f"message {var}")
"...validate the input"Use a while loop with checkwhile not valid:
"...calculate the total/average"Use accumulator patterntotal = total + value

Activity Complete