Computer Science, asked by koushiks5028, 8 months ago

If str1="IPLSeason" what will be the output if in python its given as: print(str1[3:]) ​

Answers

Answered by deepujindal2002
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