If str1="IPLSeason" what will be the output if in python its given as: print(str1[3:])
Answers
Answered by
1
Answer:
Season
Explanation:
Here : is a slicing operator
It is used as
string[startIndex: EndIndex: StepSize]
Here EndIndex is exclusive. If we leave EndIndex blank(as in this example), It will print till the end of the string. By default, StepSize = 1
Similar questions