Skip to content
Debug 5.4. Birthday Boolean with starter code
  • Pages
    • icon picker
      The Task
    • Python Starter Code
    • Code Clips

The Task

Activity: Debug 5.4 Birthday Boolean! 🐞

Start Here

A bug report has been has been submitted on this program. This program should ask the user if it is their birthday today and display relevant response depending on answer. We have checked the program but the if else statement is in a bit of a mess. Can you help fix it?
Run and explore the program to identify errors.
Refer to the code clips below to help you fix the errors.
Right click on your code and add a comment explaining what was wrong and how you fixed it.
Good luck! 🍀

Sample output

Is today your birthday, 1-True or 0-False? 0


Have a great day when it comes.
Is today your birthday, 1-True or 0-False? 1


Happy Birthday!
Hope you have the best day
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.