Question: Using python, modify the PrintCalendar.py program to work with dates beginning in 1492. Using the Wikipedia article (https://en.wikipedia.org/wiki/Voyages_of_Christopher_Columbus), print a calendar showing the start of

Using python, modify the PrintCalendar.py program to work with dates beginning in 1492. Using the Wikipedia article (https://en.wikipedia.org/wiki/Voyages_of_Christopher_Columbus), print a calendar showing the start of his first voyage. It would be best to use a list for the names of the months.

Here is what I have so far:

def readInput(): year = int(input("Gimme year yyyy")) month = int(input("Month? mm ")) return(year, month) def printMonth(month, year): printMonthTitle(month, year)

def printMonthTitle(month, year): monthName = getMonthName(month) print ("--------", monthName, " ", year, "-------------") print (" Sun Mon Tue Wed Thurs Fri Sat")

def getMonthName(month): months = ["January","February","March","April","May","June","July","August","September","October","November","December"] return( months[month-1])

def getStartDay(): pass def getNumDays(): pass

def printMonthBody(month, year): print ("month body", month, year) getStartDay() getNumDays()

def Main(): year, month = readInput() printMonth(month, year) printMonthBody(month, year)

#********************* Main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!