• Python question of the day

    Which of the following code snippets, when executed, prints the calendar of January 2021?
     import calendar; print(calendar.month(2021,'Jan'))
     import calendar; print(calendar.month('Jan', 2021))
     import calendar; print(calendar.month(2021,1))
     import calendar; print(calendar.month(1, 2021))
    In python, month method of calendar object has the signature: calendar.month(theyear, themonth, w=0, l=0)

    Top 100 python interview questions:

  • python bootcamp 2021
datai analytics