+ 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???

29th Nov 2019, 11:45 AM
강미진
강미진 - avatar
2 Respuestas
+ 2
len([]) is definitely 0, so the problem must be somewhere else. Care to share your code?
29th Nov 2019, 12:07 PM
HonFu
HonFu - avatar
+ 1
Post your code here
29th Nov 2019, 12:55 PM
Qasem