Sequences
Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.
x = [1.1, 2, [3, 'tomato', 4], 'cat']
x[2]
x[-1] == "cat"
x[2][-1]
x[4]
len(x[-1])
[1,2] + [3,4]
"na"*4 + " batman"
(4, 7, 5) == [4, 7, 5]
(4, 7, 5)[0] == [4, 7, 5][0]