I am trying to create a program where it takes in a list of numbers and then it will only take the even numbers and print it.
My problem is that I am trying to understand how to give it the list of numbers for it to take in to the parameter.
Here is my code:
def getEvens(NumList):
NumList = []
for num in NumList:
if num % 2 == 0:
print(num, end = ",")
getEvens(39,94,3,4,5,67) # <--- How can I make this all go to one parameter?