Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: Last 4 Letters of String
Rafael Sachetto
2/21/2008 5:50:00 PM
Try this
>>> s = "abcdefgh"
>>> s[-4:]
'efgh
2008/2/21, Robert Rawlins - Think Blue <robert.rawlins@thinkbluemedia.co.uk>:
>
>
>
>
> Hello Guys,
>
>
>
> I'm looking for a function which will give me the last 4 characters of a
> given string. I'm sure it's a very simple task but I couldn't find anything
> of it.
>
>
>
> Any ideas?
>
>
>
> Rob
> --
>
http://mail.python.org/mailman/listinfo/p...
>
--
Rafael Sachetto Oliveira
Sir - Simple Image Resizer
http://rsachetto.googl...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Last 4 Letters of String
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password