Home  »  CodeSnippets   »   How to get a Month Name in Python

How to get a Month Name in Python

Posted: February 6, 2022 | by Michael Bright

Using calendar month_name:

import calendar
print calendar.month_name[2]

Output
February

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.