Computer Science
Related Questions
If a = (5, 4, 3, 2, 1, 0) evaluate the following expressions:
(a) a[0]
(b) a[1]
(c) a[a[0]]
(d) a[a[-1]]
(e) a[a[a[a[2]+1]]]
Can you change an element of a sequence? What if a sequence is a dictionary? What if a sequence is a tuple?
What does a * b amount to if a and b are tuples?
What does a + b amount to if a is a tuple and b is 5?