Feedback for PYTH49 problem

Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

Feedback

[0:3] shouldn’t it be = “Stri”?

No, [0:3] should print first three characters i.e. Str as [0:n] means we are slicing the string from 0th index to (n - 1)th index so [0:3] will slice the string from 0th index to 2nd index and print the characters on indexing 0, 1 and 2. I hope it helps.