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. /Tuples and Sets

Tuples and Sets

Python Programming
+ Upload a Problem
More in Python EssentialsDictionariesTuples and SetsErrors and ExceptionsModules and LibrariesSearching and SortingRecursionText ProcessingEssentials Projects
13 problems
Type:
1.
Write a program that swaps the values of two variables a and b in one line, without a third…
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Easy
2.
Choose a list, a tuple, a set or a dictionary for each, and give a reason in one sentence.
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Easy
3.
Three clubs have these members. Find the students who are in exactly two clubs.
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Medium
4.
How many letters does mississippi have, and how many different letters?
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Medium
5.
How many different students are there in the two clubs together, and who are they?
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Easy
6.
With the same two clubs, who is in cricket only, and who is in chess only?
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Medium
7.
Cricket club: Asha, Ravi, Meera. Chess club: Ravi, Kabir, Meera. Who is in both clubs?
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Medium
8.
Use the set {"a", "e", "i", "o", "u"} to test the letters e, x, a and z.
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Easy
9.
The sentence is to be or not to be. How many words does it have, and how many different words?
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Medium
10.
How many different numbers are there in [3, 1, 3, 2, 1]? Show them in order.
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Easy
11.
point = (3, 4). A student writes point[0] = 10 and the program stops.
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Medium
12.
Write a function min_max(numbers) that returns the smallest and the biggest number.
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Medium
13.
For point = (3, 4), find point[0], len(point) and the sum of the two numbers by unpacking.
High School (9–10), High School (11–12), Undergraduate, General · Tuples and SetsStemPy LabStemPy Lab
Easy