How do I write a python program that asks the user to enter a number between 1 and 12 and displays the name for that month (e.g. an input of 5 would produce the output May).
Ho do I write a program that asks the user to enter three numbers for year, month number, and date (e.g. 2001, 5, 11) and outputs the date in the form 5th November 2001.
How can I extend your program for displaying dates so that it only accepts valid dates (to ignore leap years). For example, an input of 1999, 2, 30 should be rejected as 30th February is not a valid date.
source https://stackoverflow.com/questions/70146683/programming-using-selection
Comments
Post a Comment