fork(1) download
  1. def how_many_days(month_number):
  2. days_in_month = [31,28,31,30,31,30,31,31,30,31,30,31]
  3. return days_in_month[month_number];
  4. # This test case should print 31, the number of days in the eighth month, August
  5.  
  6. print(how_many_days(8))
Success #stdin #stdout 0.01s 23352KB
stdin
Standard input is empty
stdout
30