fork(1) download
  1. def mon_name(n):
  2. if (n>=1) & (n<=12):
  3. return ['jan','feb','mar','apr','may','jun','jul','aug','sep','okt','nov','dec'][n-1]
  4. else:
  5. return 'bad mon number!'
  6.  
  7. print(mon_name(9))
Success #stdin #stdout 0.01s 27656KB
stdin
Standard input is empty
stdout
sep