Practice
Let
x = [5, 6, 7]
. Write the value of each of the following:
len(x)
x[1]
x[-1]
x[1 + 1]
Let
s = 'superhero'
. Write the value of each of the following:
len(s)
s[-1]
s[0]
s[10]
s[1] + s[2]
s[-4] + s[-3]