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 Basics
/
Mini Projects
Mini Projects
Python Programming
+ Upload a Problem
More in Python Basics
Getting Started with Python
Variables and Data Types
Operators and Expressions
Input and Output
Strings
Conditionals: if, elif, else
Loops
Lists
Functions
Mini Projects
All Levels
Middle Stage (6–8)
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.
This program should show the average of the even numbers in the list.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Medium
2.
The marks are [72, 85, 64, 90, 58, 91, 60, 74].
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Medium
3.
A quiz has 5 questions but only 4 answers.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Easy
4.
The secret number is 42, the limit is 7 tries, and the player types 50, 30, 36, 42.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Medium
5.
Write a function calc(a, op, b) for +, -, * and /.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Hard
6.
Write a function winner(a, b) for two moves.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Hard
7.
A mark of 60 or more is a pass. Show the names of the students who passed, with their marks.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Medium
8.
Write a function average(numbers) that returns the average of a list.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Easy
9.
Names are ["Asha", "Ravi", "Meera", "Kabir", "Ana"] and marks are [72, 85, 64, 90, 58].
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Medium
10.
The correct answer is paris, but the player types PaRiS with spaces and capital letters.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Easy
11.
A student scores 3 out of 4 in the quiz.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Medium
12.
A quiz has two questions and two answers.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Easy
13.
The score is 100 for one guess, with 10 less for each extra guess, and never below 0.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Medium
14.
The secret number is 42. The game gives at most 5 guesses.
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Mini Projects
StemPy Lab
Medium