Practice

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