how to print a statement loops in python code example Example: for loops MyString = "" for i in range(5): MyString += "hi" print(MyString)