Getting last char in string.

Lutz Schroeer ifls at rz.tu-clausthal.de
Mon Sep 30 02:08:27 EDT 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