Differences between revisions 2 and 3
Revision 2 as of 2008-04-14 13:45:47
Size: 287
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 6: 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 12: Line 14:

   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)