+ 2
Find the error
S="PURA VIDA" print(S[9]+S[9:15])
4 Respuestas
+ 7
Harshita...Xx Index out of range. You have only 9 elements from index 0 to 8. Then how can you print index 9 or 9:15.
+ 5
I want to add that it's the first part giving you the error (index too large).
The slice operation (9:15) just gives you an empty string.
0
Hi