[Tutor] how to remove first '/'

Emad Nawfal (عماد نوفل) emadnawfal at gmail.com
Wed Aug 26 00:01:26 CEST 2009


On Tue, Aug 25, 2009 at 5:55 PM, <davidwilson at safe-mail.net> wrote:

> Hello,
> I want to strip the first '/' from the following:
>
> '/path/to/file'
>
> How can I do this?
>
> Dave
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>

If I understand correctly
>>> m = '/path/to/file'
>>> m[1:]
'path/to/file'
>>>


-- 
لا أعرف مظلوما تواطأ الناس علي هضمه ولا زهدوا في إنصافه كالحقيقة.....محمد
الغزالي
"No victim has ever been more repressed and alienated than the truth"

Emad Soliman Nawfal
Indiana University, Bloomington
--------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090825/e2e07775/attachment.htm>


More information about the Tutor mailing list