Lecture 4 Exercises

Assign the number of elements in lst to the variable output.
Assign the last element of lst to the variable end_elem. Do this so that it works no matter how long lst is.
Create a new list that contains the 6th through 13th (as humans count) elements of lst (eight items in all) and assign it to the variable output.

Assign the 4th element of s (as humans count) to the variable a. Do not hard code – use indexing!

Then assign the 7th (again, as humans count) element of s to the variable b. Do not hard code – use indexing!

Next Section - Lecture 8 Exercises