[Tutor] Tutor Digest, Vol 100, Issue 58
Alan Gauld
alan.gauld at btinternet.com
Tue Jun 26 02:10:09 CEST 2012
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/
More information about the Tutor
mailing list