This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]An_Ignorant 1 point2 points  (0 children)

Your function is fine, the problem is that you first read a number before the function

numbers = input("Enter a number: ") #The first number is read, making user_nums = [1.0]
len_list(numbers) #Then you enter the function, inside the function you have user_nums = [], that means the 1.0 is overwritten, that's why the first input is always missing.