LehreWiki

   1 from string import *
   2 
   3 
   4 def Monatszahl(Monat):
   5         Monate={"januar":1,"februar":2,"maerz":3,"april":4,"mai":5,"juni":6,
   6                 "juli":7,"august":8,"september":9,"oktober":10,"november":11,
   7                 "dezember":12}
   8         C=Monate.get(lower(Monat))
   9         print lower(Monat),' : ',C
  10         return C        

LehreWiki: SiaExercisesLesson1LoesungDictionariesA (last edited 2008-04-14 13:52:14 by BenteTiedje)