The above examples if you provide Hard Code values but if you want to take from user input then you have to use loop like:
array = 
if number == 0:
Non keyword arguments are usually used to prevent the program from crashing if we don't know how many arguments will be passed to the function. See the following link for more details and examples.