[Tutor] (no subject)

Rob rob@uselesspython.com
Thu, 8 Aug 2002 09:39:55 -0500


I see you have already received a few responses, so I'll just add one little
handy thing:

>>> count = 0
>>> count = count + 1
>>> count
1
>>> count += 1
>>> count
2

Rob
http://uselesspython.com

> -----Original Message-----
> From: tutor-admin@python.org [mailto:tutor-admin@python.org]On Behalf Of
> steven bruce
> Sent: Wednesday, August 07, 2002 6:28 PM
> To: tutor@python.org
> Subject: [Tutor] (no subject)
>
>
> Hi everyone again,
>
> I have sorted it now thanks to all your help and just to give you
> all a good
> laugh I thought id show you how not to do it.
>
>
> password = "hjgjhj"
> password != "steve":
> 	count = 0
> 	max = 4
> 	count < max
> 	password = raw_input ("What is your Username? ")
> 	if password == "steve":
> 		count = 4
> 	elif password <> "steve":
> 		count = count + 1
> print "Hi",password
>
> I really appreciate all the e-mails.  I didnt quite expect that sort of
> reaction but goes to prove what an excellent site for beginners.
>
> Many Thanks
>
> Steve
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>