118k views
12 votes
Which function allows you to display the name of the month?

>>>import time

>>>aTime = time.locatime()

>>>time.__________("%B",aTime)

Sample Output:
'March'

User DLCross
by
6.8k points

1 Answer

6 votes

Answer:

strftime

Step-by-step explanation:

>>> import time

>>> aTime = time.localtime()

>>> time.strftime("%B",aTime)

'May'

User Jfabrizio
by
5.8k points