Thank you for the replies.
-------- Original Message -------- From: Emad Nawfal (عماد نوفل)<emadnaw...@gmail.com> To: davidwil...@safe-mail.net Cc: tutor@python.org Subject: Re: [Tutor] how to remove first '/' Date: Tue, 25 Aug 2009 18:01:26 -0400 > > > On Tue, Aug 25, 2009 at 5:55 PM, <davidwil...@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@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 > --------------------------------------------------------
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor