Question #143003

Test if a date is a payday based on the day of the month (15th or the 30th). 3.3 Code Practice: Question 1

Expert's answer

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")


OUTPUT:








Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS