[Tutor] Question about resetting values

Hugo González Monteverde hugonz-lists at h-lab.net
Sat Nov 12 06:49:14 CET 2005

There may be more than one way to have it get a zero value. But  in 
languages like Python readability and clarity are valued, and clearly

var = 0

is the clearest way to do it, although

var = var^var

comes to mind, *grin*


Nathan Pinno wrote:
> Never mind all. I was just being stupid as usual. I thought that there might 
> be a Python command for resetting and wanted to find out if that was the 
> case.
> ----- Original Message ----- 
> From: "Alan G" <alan.gauld at freenet.co.uk>
> To: "Nathan Pinno" <falcon3166 at hotmail.com>; "Tutor mailing list" 
> <tutor at python.org>
> Sent: Tuesday, August 02, 2005 2:45 PM
> Subject: Re: [Tutor] Question about resetting values
>>>I am writing a Blackjack program, and was wondering how to reset the 
>>>values to zero, e.g. cash = 0?
>>Yes, that's how you do it. Now what is the bit you don't understand?
>>Alan G
>>Author of the Learn to Program web tutor
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list