New course! Every coder should learn Generative AI!
Try a free lesson0
error:Append requires a list object
list.append(7) # error mylist = list() mylist.append(7) # ok
2 Answers
+ 4
`list` is a class, use <mylist> instead.
+ 1
Thank you lpang
list.append(7) # error mylist = list() mylist.append(7) # ok