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

How to get a Month Name in Python

Posted: February 6, 2022 | by Site Host

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.

Share it!

See also  Bootstrap 5 CDN Cheatsheet