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 Basics
  3. /Mini Projects

Mini Projects

Python Programming
+ Upload a Problem
More in Python BasicsGetting Started with PythonVariables and Data TypesOperators and ExpressionsInput and OutputStringsConditionals: if, elif, elseLoopsListsFunctionsMini Projects
14 problems
Type:
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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy 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 ProjectsStemPy LabStemPy Lab
Medium