def gen_rand(number):
    generated = random.randint(1, 10)
print(generated)
return number + generated
myList = [1, 2, 3, 4, 5]
print(str(myList))
myList = [gen_rand(item) for item in myList]
print(str(myList))
How to cycle through items in an list and have each item get fed into a function