how to use a for loop in a function code example Example: python for loop for item in ['mosh','john','sarah']: print(item)