python function with for cycle code example Example: python for loop nums = ['one', 'two', 'three'] for elem in nums: print(elem)