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*

Hugo

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" <[EMAIL PROTECTED]>
> To: "Nathan Pinno" <[EMAIL PROTECTED]>; "Tutor mailing list" 
> <tutor@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
>>http://www.freenetpages.co.uk/hp/alan.gauld
>>
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to