Question: What will happen when you execute the following Python program? favorite _ candy = input ( Hi ! What is your favorite candy?
What will happen when you execute the following Python program?
favoritecandy inputHi What is your favorite candy? print
favoritesong inputCool What is your favorite song?
print
printListen to favoritesong and eat some favoritecandy
It will initialize the variable favoritecandy to an empty string value.
It will not execute properly because it contains an error.
It will display the text Hi What is your favorite candy?" and wait for user input.
It will display three different text strings on separate lines.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
