Post Wed Feb 06, 2008 10:47 am

What's wrong with this lvl4- python code?

Hi guys,
I'm trying to solve lvl 4, and I'm pretty sure i'm on the right way
but there might be some bug on my code?

Anyways here is my code:


OpenTheFile = open("ToTranslate.txt","r")
ReadIt =

for Charac in ReadIt:
   Temp = ord(Charac)
   if (Temp >= ord("a")) and (Temp <= ord("z")):
      if Counter==3:

   elif (Temp >= ord("A")) and (Temp <= ord("Z")):

      if Counter>3:
      elif Counter==3 and WasLast==1:
         print LastChar,

What is wrong with it?

Thanks in advance[/code]