[Tutor] Doubt!
Nitin Ainani
nitinainani at gmail.com
Wed Oct 24 01:14:10 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
why?
Regards,
Nitin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121023/2f07a1f9/attachment-0001.html>
More information about the Tutor
mailing list