Why this code in python gives this error? TypeError: object of type 'int' has no len() but i'm calling it on a list

前端 未结 0 1401
醉话见心
醉话见心 2021-01-30 09:14

This code throws these error:

while len(digits) > 1: TypeError: object of type \'int\' has no len()

but my variable digits is a list right? i guess there must b

相关标签:
回答
  • 消灭零回复
提交回复
热议问题