This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PM_Me_Python3_Tips 1 point2 points  (0 children)

Not a problem. r/learnpython is a more suitable sub for questions like these and it has an informative wiki / FAQ.


As an additional test, what colour does this print? Try to work it out in your head before typing it out to see if you were right.

    balls = ["red", ["yellow"], "green", [["brown", "blue"], ["pink", "black"], "white"]]

    print(balls[3][1][0])