PYTHONImplement the design of the Spotify class so that the followingoutput is produced:Driver Code
# Write your code hereuser1 = Spotify(["See You Again", "Uptown Funk", "Hello"])print("=========================")print(user1.playing_number(4))user1.add_to_playlist("Dusk Till Dawn")print(user1.playing_number(3))print(user1.playing_number(4))
OUTPUT
Welcome to Spotify!=========================4 number song not found. Your playlisthas 3 songs only.##########################Playing 3 number song for youSong name: Hello##########################Playing 4 number song for youSong name: Dusk Till Dawn
PYTHON Implement the design of the Spotify class so that the following output is produced: Driver Code # Write your code
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am