Variables in a loop, Newby question
Larry Hudson
orgnut at yahoo.com
Wed Dec 25 03:13:36 EST 2013
On 12/24/2013 08:07 AM, vanommen.robert at gmail.com wrote:
[snip...]
> x = 1
> while x <> 10
> var x = x
> x = x + 1
[snip...]
Besides the other valid answers you have received, I want to add one other minor nit. The
symbol <> for unequal is deprecated -- it's better to use != instead. Although, as was also
pointed out, in this particular case you want < (less than) rather than unequal.
-=- Larry -=-
More information about the Python-list
mailing list