How do you pass multiple values into a function?
I'm needing a function which allows the user to enter multiple values. When I call the function I want it to be able to handle an endless list of values like this:
search_columns_multi_val(column_name, 1, 2, 3, 4, ...)
So, the list of numbers stored in the values parameter should come in as a list of values.
This is as far as I have got with the basic code:
def search_columns_multi_val(column, values):
searchlist = [] # the list storing the entered values
for value in searchlist:
print(value)