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
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to