[Tutor] Newbie python programmer here.

Gerrit Holl gerrit@nl.linux.org
Tue May 20 16:02:22 2003


Alan Gauld schreef op dinsdag 20 mei om 21:38:44 +0000:
> > For your information: In Python 2.3, you can do string[::-1].
> 
> Not having looked at 2.3 yet what exactly does that do?
> I assume it slices starting from the back somehow but I don't 
> think the syntax is exactly obvious...?

It is documented at:

http://www.python.org/doc/2.3b1/whatsnew/section-slices.html
http://www.python.org/dev/doc/devel/ref/types.html

yours,
Gerrit.

-- 
124. If any one deliver silver, gold, or anything else to another for
safe keeping, before a witness, but he deny it, he shall be brought before
a judge, and all that he has denied he shall pay in full. 
        -- Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/