Subsetting lists
You've expanded your playlist
. It still contains the song order and song names, but now you've also added the artist name for each song, as well as some additional songs!
It repeats the same order throughout the list - 1) song number, 2) song name, 3) artist name, repeat.
The new playlist
has been printed in the IPython Shell for your reference.
This is a great opportunity for you to practice extracting specific information from your list.
This exercise is part of the course
Introduction to Python for Developers
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Find the second song
print(____)