John Carmona wrote:
> I need to print all the ASCII characters within a string, how would I 
> delimit for example to print the first 100 only? Many thanks

A string is a sequence and supports sequence operations including slices. So
   s[:100]
gives the first 100 chars of a string.

You might be interested in the textwrap modulue.

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to