Reminder: Please use full sentences, capital letters, and proper grammar where appropriate.
Don't create a loop that only loops once. That doesn't make sense. Python runs the code once by default anyway. Avoid loops like this:
1 2 | for i in range ( 1 ): # Do something. |
1 2 3 4 5 6 7 | print ( "This program takes three numbers and returns the sum." ) total = 0 for i in range ( 3 ): x = input ( "Enter a number: " ) total = total + i print ( "The total is:" , x) |