Copy the code into a new file. Save it as “variable bug.py”.
The code will not run. There is a bug. The variable to store what you had for breakfast is called “food”.
Make the following changes.
– change the last line of the code. replace “breakfast” with “food”.
– Change the text “is very tasty” to be “is a good breakfast”
food = input("Enter what you had for breakfast - ") print(breakfast + " is very tasty")
You need to log in or create an account to submit code!