I am new to Python. try to learn. I want to create program where it should ask for birthday just day and month using input function and if the birthday is in the future then should give message that how many days left for your birthday, if it is already passed then it should give message that your birthday was that many days ago and if it is today then should show message ‘happy birthday’
I spent lot of time but no luck
Python
Last Comment
Subodh Tiwari (Neeraj)
8/22/2022 - Mon
aikimark
What is the current state of your Python code?
snhandle
ASKER
import datetime
today_date = datetime.date.today()
birthday = input(“enter your birth date (DD/MM):”)
if x > 0
print(your birthday has already passed by” (x))
if x < 0
print(“u still have (x) days left”)
if x = 0
print(“happy birthday”)