how to create loops python code example Example: for loop example python 3 for num in nums: for letter in 'abs': print(num, letter)