for loops probably the most powerful thing about computers is that they can repeat things over and over very quickly there are several ways to repeat things in pythonthe most common of which is the for loop examples example the following program will print hello ten timesfor in range( )print'hello 'the structure of for loop is as followsfor variable name in rangenumber of times to repeat )statements to be repeated the syntax is important here the word for must be in lowercasethe first line must end with colonand the statements to be repeated must be indented indentation is used to tell python which statements will be repeated example the program below asks the user for number and prints its squarethen asks for another number and prints its squareetc it does this three times and then prints that the loop is done for in range( )num eval(input'enter number')print 'the square of your number is 'num*numprint'the loop is now done '