[Tutor] split a 5 chars word into 4 and 1

Stefan Behnel stefan_ml at behnel.de
Tue Mar 9 17:03:27 CET 2010


Emad Nawfal (عمـ نوفل ـاد), 09.03.2010 16:45:
> What about indexing
> part1 = word[:4]

That's slicing.

> part2 = word[4]

That's indexing.

Stefan



More information about the Tutor mailing list