Getting last char in string.

Lutz Schroeer ifls at rz.tu-clausthal.de
Mon Sep 30 08:08:27 CEST 2002


CheapSkate <gua81 at xxxyahoo.com> wrote:
: my Q now is how to get the last char???

>>> s = "Hello!"
>>> print x[-1:]
!

greets
Lutz



More information about the Python-list mailing list