DEV Community

Discussion on: 30 Days of Python 👨‍💻 - Day 3 - Data Types II

Collapse
 
wenerikk profile image
wenerikk

Arindam, as far as I remember string[0:2] will not include a letter with index 2.

Collapse
 
arindamdawn profile image
Arindam Dawn

Thanks for bringing this up. It was a typo at my end. However, the output mentioned was correct. I have corrected it now :)