function with for loop in python code example Example: python for loop for number in range(10): print(number)