QUESTION IMAGE
Question
section 1: variables
- program: write a python program that prompts the user to enter their favorite color and their birth year. store the values in variables and print a message using those variables.
Step1: Prompt for favorite color
favorite_color = input("Please enter your favorite color: ")
Step2: Prompt for birth year
birth_year = input("Please enter your birth year: ")
Step3: Print message using variables
print(f"Your favorite color is {favorite_color} and you were born in {birth_year}.")Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
favorite_color = input("Please enter your favorite color: ")
birth_year = input("Please enter your birth year: ")
print(f"Your favorite color is {favorite_color} and you were born in {birth_year}.")