Mylist =[‘a’, ‘a’, ‘b’, ‘b’, ‘b’, ‘c’, ‘c’, ‘d’, ‘e’] The output of the code: Mylist.index(‘d’) is
Answers
Answered by
0
Answer:
mylist. index('d') -> 7
Explanation:
Index() takes the element as an argument and returns the index. Please note that you can provide any input such as a list or a tuple or a substring.
Answered by
0
7 is the correct answer of the given question.
Explanation:
The following are the description of the given question.
- The list is behaving like an array in the python programming language.
- MyList is a list that contains the element.
- The index function returns the value of the index in which a particular. number is associated.
- The d is in index 7 so it returns the 7.
Learn More:
- https://brainly.in/question/9028888
Similar questions