If you're seeing this message, it means we're having trouble loading external resources on our website.
If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.
To log in and use all the features of Khan Academy, please enable JavaScript in your browser.
import player songs_played = 0 playlist_length = player.get_playlist() autoplay = "on" while songs_played < playlist_length or autoplay == "on": player.play_next_song() songs_played = songs_played + 1 autoplay = input("Autoplay? ")