| "The program should ask the user..." | Use input() | variable = input("prompt") |
| "...for each item in the list" | Use a for loop | for item in list: |
| "...check whether..." | Use an if statement | if condition: |
| "...repeat until..." | Use a while loop | while not condition: |
| "...store the results" | Use a list or variable | results = [] |
| "...display a suitable message" | Use print() with f-string | print(f"message {var}") |
| "...validate the input" | Use a while loop with check | while not valid: |
| "...calculate the total/average" | Use accumulator pattern | total = total + value |