Let's use a variable to keep track of whether a song is already in a playlist or not for a music-streaming website.
If a song is already there, we'll inform the user that they're adding it twice.