[Tutor] Cell Bio Newbie Here (Gary L) (Joseph Q.)

Joseph Quigley cpu.crazy at gmail.com
Wed Apr 13 19:17:56 CEST 2005


At 02:02 PM 4/11/2005, you wrote:
>Send Tutor mailing list submissions to
>         tutor at python.org
>Hey all,
>
>Sorry for the bother, thanks for the help....


#first of all, why does this have to be here?
>password="foobar"
>
>count=3
>current_count=0
>
>while password !="unicorn":
>      if current_count<count:
>          password=raw_input("Password:")
>          current_count=current_count+1
>      else:
>          print "That must have been complicated"
>
>
>print "Welcome in"

Just wondering... would breaking the loop at 3 counts work at all? Or would 
it screw it up?

Joe  



More information about the Tutor mailing list