Newsgroups: comp.lang.python
From: MRAB <pyt...@mrabarnett.plus.com>
Date: Wed, 14 Nov 2012 18:48:52 +0000
Local: Wed, Nov 14 2012 1:48 pm
Subject: Re: Error
On 2012-11-14 15:18, inshu chauhan wrote:
> for this code m getting this error :
> CODE :
> change = True
It's indented the same as the preceding 'if' statement, which means
that it's executed even if the body of the 'if' statement wasn't executed and it hasn't assigned to 'centre'. So 'change' has been set to True, the 'while' loop is entered, and
> while change:
The indentation of this line looks wrong to me:
> for ring_number in xrange(1, 1000):
> for idx in new_indices:
> if point == (0.0, 0.0, 0.0 ):
> break
It'll affect the 'for cx' loop at the end of its first iteration, every
time. > ERROR :
> And i am unable to understand .. WHY ?
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||