...

/

Exercise: String Slicing

Exercise: String Slicing

Test your knowledge of the slice function.

Sort the rows given below based on their titles. Make sure you exclude the header row.

Hint: the slice method works in the same way on arrays as on strings.

Solution

First, we get rid of the first row:

Access this course and 1400+ top-rated courses and projects.