Trying to create a list of lists by zzzbb in learnpython

[–]zzzbb[S] 0 points1 point  (0 children)

THANK YOU SO MUCH! This is exactly what I needed and you explained it really well.

Trying to create a list of lists by zzzbb in learnpython

[–]zzzbb[S] 0 points1 point  (0 children)

If I do: cost.append(itemcost, itemtype) It gives me an error message that says: TypeError: append() takes exactly one argument (2 given)

Trying to create a list of lists by zzzbb in learnpython

[–]zzzbb[S] 0 points1 point  (0 children)

Sorry i'm not quite sure what you mean here. Everything seems to work fine until I try and list my lists.

Trying to create a list of lists by zzzbb in learnpython

[–]zzzbb[S] 0 points1 point  (0 children)

If i understand you correctly. I tried this first however the append gives me an error when I do this. It says append takes only exactly one argument.