Issue
occasionDay = input()
if occasionDay is 'Birthday':
birthdayRun()
#what will be used in place of (is) birthdayRun is a command
Solution
You need to replace is
with ==
and it will match the string and if equals to it will run the birthdayRun()
occasionDay = input("Enter:") # you can put value you want to display for user
if occasionDay == 'Birthday':
birthdayRun()
Answered By - jedimasterbot Answer Checked By - David Marino (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.