Hi Emile,
On 26/06/12 00:26, Emile van Sebille wrote:
Try using the operator that checks for equality such as
if w[0] == 'x':
This does the same thing and works even when w is an empty string.
Umm, so does startswith()? Can you clarify what you mean by the last
sentence?
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor