Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Music Playlist Generator | Python if-elif-else Statement
Conditional Statements in Python
course content

Course Content

Conditional Statements in Python

Conditional Statements in Python

1. Python if Statement
2. Python if-else Statement
3. Python if-elif-else Statement
4. Python Ternary Operator

bookChallenge: Music Playlist Generator

Task

Are you a music enthusiast? You will create a straightforward music playlist tailored to the user's mood.

Below is a dictionary categorizing various moods on a scale from 1 to 5, with 1 representing sadness and 5 representing excitement. The user will input their current mood, and our program will suggest a song accordingly.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 4
toggle bottom row

bookChallenge: Music Playlist Generator

Task

Are you a music enthusiast? You will create a straightforward music playlist tailored to the user's mood.

Below is a dictionary categorizing various moods on a scale from 1 to 5, with 1 representing sadness and 5 representing excitement. The user will input their current mood, and our program will suggest a song accordingly.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 4
toggle bottom row

bookChallenge: Music Playlist Generator

Task

Are you a music enthusiast? You will create a straightforward music playlist tailored to the user's mood.

Below is a dictionary categorizing various moods on a scale from 1 to 5, with 1 representing sadness and 5 representing excitement. The user will input their current mood, and our program will suggest a song accordingly.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Task

Are you a music enthusiast? You will create a straightforward music playlist tailored to the user's mood.

Below is a dictionary categorizing various moods on a scale from 1 to 5, with 1 representing sadness and 5 representing excitement. The user will input their current mood, and our program will suggest a song accordingly.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 4
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt