Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
What does print([4, 2, 7].index(7)) show? | StemPy Lab
Quizzes
/
What does print([4, 2, 7].index(7)) show?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Searching and Sorting
Created by
StemPy Lab
What does print([4, 2, 7].index(7)) show?
3
1
7
2
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← What does print(sorted(["b", "A", "c"])) show?
What does print(sorted(["fig", "kiwi", "apple"], key=len)) show? →
More on
Python Essentials › Searching and Sorting
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
The marks, already sorted from the highest, are [95, 90, 90, 90, 80, 75, 75].
Medium
Bubble sort needs n * (n - 1) // 2 comparisons.
Medium
Write a function first_above(items, limit) that gives the position of the first item that is more…
Easy
Which search would you use? (a) A list of 5 names in no particular order.
Medium
All problems on this topic →