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