[Tutor] How does it work?
Shrivats
shrvtsnvs at gmail.com
Mon Jan 3 16:02:18 CET 2011
On Mon, Jan 03, 2011 at 10:52:26PM +0800, Neo Vector wrote:
> Hi All,
Hello,
> Could you explain me how does it work, pls?
Sure, I'm not telling you how that works. However, I'll alter your code snippet
a little bit and see if you can understand after that.
> ==============================
> >>>r = '1'
> >>>for c in 'abcd':
print r
> r = c + r
> ...
> ...
1
a1
ba1
cba1
> >>>r
> 'dcba1'
> ==============================
Let me know if you still face problems.
HTH,
Shrivats
More information about the Tutor
mailing list