Test if a date is a payday based on the day of the month (15th or the 30th). 3.3 Code Practice: Question 1
1
Expert's answer
2020-11-09T00:09:05-0500
date = int(input("Enter today's day numerically: "))
if date == 15:
print("it's Payday")
elif date == 30:
print("it's Payday")
else:
print("Sorry, not a PayDay")
Comments
Leave a comment