[Tutor] IndentationError: unexpected indent

2016-11-08 Thread Palanikumar Gopalakrishnan
Hi Guys, I tried this code from internet, Its returns following please guide me to solve this error -- *Warm Regards,* *Palanikumar Gopalakrishnan *[image: ✌] *Developer* ___ Tutor maillist - Tutor@python.org To unsubscribe or change su

Re: [Tutor] IndentationError

2014-08-12 Thread Peter Otten
王学敏 wrote: > Dear Python Users, > > Attachment is python code. > > The function of this code is that I want to insert lots of fiber into > matrix, data is a list storing translate vector. When a fiber is > translated to matrix, I used fiber to cut matrix. So the new part will be > generated, I d

Re: [Tutor] IndentationError

2014-08-11 Thread Mark Lawrence
On 11/08/2014 22:28, 王学敏 wrote: Dear Python Users, Attachment is python code. The function of this code is that I want to insert lots of fiber into matrix, data is a list storing translate vector. When a fiber is translated to matrix, I used fiber to cut matrix. So the new part will be generate

Re: [Tutor] IndentationError

2014-08-11 Thread Alan Gauld
On 11/08/14 22:28, 王学敏 wrote: for i in range(len(data)): instancename='Part'+str(i)+'-'+str(1) partname='Part'+str(i+1) pre_part='Part'+str(i) mdb.models['Model-1'].rootAssembly.translate(instanceList=('fiber-1', ),vector=(data[i][0], data[i][1], 0.0))

[Tutor] IndentationError

2014-08-11 Thread 王学敏
Dear Python Users, Attachment is python code. The function of this code is that I want to insert lots of fiber into matrix, data is a list storing translate vector. When a fiber is translated to matrix, I used fiber to cut matrix. So the new part will be generated, I delete the previous part and

Re: [Tutor] IndentationError:

2011-11-16 Thread Timo
Op 16-11-11 09:46, lina schreef: On Wed, Nov 16, 2011 at 4:31 PM, Andre Engels wrote: On Wed, Nov 16, 2011 at 9:21 AM, lina wrote: it still complaining. I set the gedit, use space not tab, Now I even typed space by space, avoid using tab, it still has the same problem. How can I fixed it? T

Re: [Tutor] IndentationError:

2011-11-16 Thread lina
On Wed, Nov 16, 2011 at 4:31 PM, Andre Engels wrote: > On Wed, Nov 16, 2011 at 9:21 AM, lina wrote: >> >> it still complaining. I set the gedit, use space not tab, >> Now I even typed space by space, avoid using tab, it still has the same >> problem. >> >> How can I fixed it? > > The line > >    

Re: [Tutor] IndentationError:

2011-11-16 Thread Andre Engels
On Wed, Nov 16, 2011 at 9:21 AM, lina wrote: > it still complaining. I set the gedit, use space not tab, > Now I even typed space by space, avoid using tab, it still has the same > problem. > > How can I fixed it? > The line if list1[i][j] != list1[i][j+1]: still contains a tab, th

Re: [Tutor] IndentationError:

2011-11-16 Thread lina
On Wed, Nov 16, 2011 at 4:06 PM, Dario Lopez-Kästen wrote: > The indentation is indeed off: > Original code: > def PlotPathway(list1): >    for i in range(len(list1)): >        for j in range(len(list1[i])-1): >                    if list1[i][j] != list1[i][j+1]: >                        g.add_edg

Re: [Tutor] IndentationError:

2011-11-16 Thread Dario Lopez-Kästen
The indentation is indeed off: Original code: def PlotPathway(list1): for i in range(len(list1)): for j in range(len(list1[i])-1): if list1[i][j] != list1[i][j+1]: g.add_edge(list1[i][j], list1[i][j+1]) if list1[i][j]<=42:

[Tutor] IndentationError:

2011-11-15 Thread lina
Why it keeps on complaining: $ python plot-pathway.py File "plot-pathway.py", line 35 if list1[i][j]<=42: ^ IndentationError: unindent does not match any outer indentation level def PlotPathway(list1): for i in range(len(list1)): for j in range(len(list1[i