Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2008-04-14 13:43:37
Size: 282
Editor: BenteTiedje
Comment:
Revision 3 as of 2008-04-14 13:52:14
Size: 298
Editor: BenteTiedje
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
Line 5: Line 6:
Monate={"januar":1,"februar":2,"maerz":3,"april":4,"mai":5,"juni":6,"juli":7,"august":8,"september":9,"oktober":10,"november":11,"dezember":12}  Monate={"januar":1,"februar":2,"maerz":3,"april":4,"mai":5,"juni":6,
  
"juli":7,"august":8,"september":9,"oktober":10,"november":11,
  
"dezember":12}
Line 8: Line 11:
 return C  return C   

   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)