Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Problems
/
Python Essentials
/
Modules and Libraries
Modules and Libraries
Python Programming
+ Upload a Problem
More in Python Essentials
Dictionaries
Tuples and Sets
Errors and Exceptions
Modules and Libraries
Searching and Sorting
Recursion
Text Processing
Essentials Projects
All Levels
High School (9–10)
High School (11–12)
Undergraduate
General
All
Easy
Medium
Hard
Sort
Mixed
Newest first
Oldest first
A to Z
14 problems
Type:
Any
Conceptual
Numerical
Python-Coded
1.
A shop sells these items on one day, with the prices [20, 25, 25, 30, 22, 28, 400].
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Easy
2.
Roll two dice 6000 times, with the seed 3.
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Medium
3.
Which module would you use for each job?
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Easy
4.
Find out, with dir and help, which function of math gives the sine of an angle, and which gives the…
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Easy
5.
For the marks 2, 4, 4, 4, 5, 5, 7, 9, find the mean and the spread (the standard deviation of the…
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Hard
6.
On which days of the week do 11 October 2026 and 25 December 2026 fall?
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Easy
7.
How many days are there from 11 October 2026 to 25 December 2026?
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Medium
8.
Find the mean, the median and the mode of 4, 8, 6, 5, 3, 8, 9.
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Medium
9.
A list of the numbers 1 to 8 is shuffled with random.shuffle.
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Medium
10.
Pick a winner at random from ["Asha", "Ravi", "Meera", "Kabir"].
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Easy
11.
Find 5!, the greatest common divisor of 12 and 18, and the greatest common divisor of 17 and 5.
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Easy
12.
Find the long side (the hypotenuse) of a right triangle with the other sides 3 and 4, and with 5…
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Medium
13.
A school trip has 130 students. Each bus has 45 seats. How many buses are needed?
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Medium
14.
Use the math module to find the square root of 144, and the area of a circle of radius 5 with A = π…
High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
StemPy Lab
Easy