0

error:Append requires a list object

list.append(7) # error mylist = list() mylist.append(7) # ok

16th Jan 2021, 1:12 PM
Ghost
Ghost - avatar
2 Respostas
+ 4
`list` is a class, use <mylist> instead.
16th Jan 2021, 1:20 PM
Ipang
+ 1
Thank you lpang
18th Jan 2021, 2:55 PM
Ghost
Ghost - avatar