make function tasks loop in python code example Example: for loop example python 3 for num in nums: for letter in 'abs': print(num, letter)