fork download
  1. #!/usr/bin/env python3
  2. from calendar import month_abbr
  3.  
  4. month_number = int(input("Enter a month number (Jan -> 1): "))
  5. print(month_abbr[month_number])
Success #stdin #stdout 0.14s 11416KB
stdin
3
stdout
Enter a month number (Jan -> 1): Mar