Computer Science, asked by zamiir, 8 months ago

If the end index specifies a position beyond the end of the list

Answers

Answered by orangesquirrel
0

The complete question is:

If the end index specifies a position beyond the end of the list, Python will use the length of the list instead.

True or False.

The correct answer is True.

  • Both the start and end index are optional.
  • Without the start index, it becomes 0.
  • Without the end index, it points out to the last index of the given list.
  • In python, the index method functions by returning the index of a substring written inside a particular string.

The syntax for a string is:

str.index(sub[,start[,end]] )

  • Therefore, it involves three factors:

Sub, start and end.

Similar questions