Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 241 Bytes

slicing_lvl_1.md

File metadata and controls

13 lines (9 loc) · 241 Bytes

Slicing - Level 1

What is the result of each of the following statements if x = 'abcdefgh'

  1. x[:]
  2. x[2:]
  3. x[2:2]
  4. x[2:3]
  5. x[-1:]

Solution

Click here to view the solution.