Trace the output of the given code:
str=”we are super heroes”
print str[5:11]
Answers
Answered by
1
Answer:
After a bit of correction:
It should be :
e supe
Answered by
1
'e supe'
str[5:11] slices the string from index 5 and stops at index 11
Similar questions