HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClassesGroups

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Blog

Account

  • Dashboard
  • My Content
  • Profile
  • Log in
© 2026 senLearn. All rights reserved.HelpAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /Python Essentials
  3. /Modules and Libraries

Modules and Libraries

Python Programming
+ Upload a Problem
More in Python EssentialsDictionariesTuples and SetsErrors and ExceptionsModules and LibrariesSearching and SortingRecursionText ProcessingEssentials Projects
14 problems
Type:
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 LibrariesStemPy LabStemPy Lab
Easy
2.
Roll two dice 6000 times, with the seed 3.
High School (9–10), High School (11–12), Undergraduate, General · Modules and LibrariesStemPy LabStemPy Lab
Medium
3.
Which module would you use for each job?
High School (9–10), High School (11–12), Undergraduate, General · Modules and LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy 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 LibrariesStemPy LabStemPy Lab
Easy