Answer to Question #143003 in Python for Isaiah Murillo

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


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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS