[Tutor] split a 5 chars word into 4 and 1
Emad Nawfal (عمـ نوفل ـاد)
emadnawfal at gmail.com
Tue Mar 9 19:45:07 CET 2010
On Tue, Mar 9, 2010 at 11:03 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Emad Nawfal (عمـ نوفل ـاد), 09.03.2010 16:45:
>
> What about indexing
>> part1 = word[:4]
>>
>
> That's slicing.
>
> part2 = word[4]
>>
>
> That's indexing.
>
> Stefan
> Thanks Stefan.
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
--
لا أعرف مظلوما تواطأ الناس علي هضمه ولا زهدوا في إنصافه كالحقيقة.....محمد
الغزالي
"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/20100309/8a9c453b/attachment.html>
More information about the Tutor
mailing list