[Tutor] Strings.
Nitin Ainani
nitinainani at gmail.com
Wed Oct 24 01:24:01 CEST 2012
Dear Sir/Madam,
I am new to python I have a question. It is as follows:
Suppose *s* is a variable and *s* stores empty string
s=""
Now if we write following statement
print(s[0]) # it gives error
print(s[0:]) # it does not give error
print (s[13:13]) # this too does not give erro
why?
Regards,
Nitin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121023/15228e64/attachment.html>
More information about the Tutor
mailing list