Get startedGet started for free

Building a party playlist

You're planning a party and want to build a playlist containing songs and the order in which they should be played.

You decide this is a great opportunity to build a list in Python! In this exercise, you will create your playlist variable and add the first three songs.

This exercise is part of the course

Introduction to Python for Developers

View Course

Exercise instructions

  • Create a list variable called playlist, containing the following numeric and string values (in order):
    1, "Blinding Lights", 2, "One Dance", 3, "Uptown Funk".
  • Print the list.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Create the playlist variable
____ = ____

# Print the list
____
Edit and Run Code