+ 1
is len([]) not 0?
i wanted to do a while loop so an empty list is appended with fibonacci numbers up to the input-th value but when i try to do by using while loop to compare length of the list to input it fails on first loop saying that the len isn’t applicable to none type???
2 Respuestas
+ 2
len([]) is definitely 0, so the problem must be somewhere else.
Care to share your code?
+ 1
Post your code here