Re: [Tutor] regarding some basic element

2016-04-03 Thread Alan Gauld
On 03/04/16 18:31, Abhijeet via Tutor wrote: > want the zero trailed form this :check the code please: > num=int(raw_input()) > fact=0for x in xrange(1, num+1): fact= fact*x str(fact)l= len(fact)for x in > reversed(xrange(l)): if x==0: c+=1print c > having issue in this code ..? Unfortunately you

[Tutor] regarding some basic element

2016-04-03 Thread Abhijeet via Tutor
want the zero trailed form this :check the code please: num=int(raw_input()) fact=0for x in xrange(1, num+1): fact= fact*x str(fact)l= len(fact)for x in reversed(xrange(l)): if x==0: c+=1print c having issue in this code ..? ___ Tutor maillist - Tutor@

Re: [Tutor] Python OOP question

2016-04-03 Thread khalil zakaria Zemmoura
Hi, Other_hand seems to be a tuple object which is immutable (unchangeable) so you can't alter it. By the way, what other_hand is supposed to be? A variable that you declared as tuple? An instance of a class? As other people said to you, we can only guess because we don't see where "other_hand"