HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_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 →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

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

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Quizzes
  2. /A program unpacks a tuple into two names, and then makes a longer tuple with +. What does the program print?
Python ProgrammingMediumHigh School (9–10)Python Essentials › Tuples and SetsPCEP (Python Institute)
StemPy LabCreated by StemPy Lab

A program unpacks a tuple into two names, and then makes a longer tuple with +. point = (3, 4) x, y = point point = point + (x * y,) print(point, point.count(4), len(point)) What does the program print?

Log in to save
← All Quizzes
← A program puts a new number into a list with insert(), and then asks the list two questions. What does the program print?A theatre stores its seats in a dictionary. Each key is a tuple of a row number and a seat letter. What does the program print? →
More onPython Essentials › Tuples and Sets

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. A function tries to add one to the first item of a tuple. If that fails, it builds a new tuple…Hard
  2. A function asks a tuple three questions and returns the three answers together. What does the…Easy
  3. Each pair in a list holds a letter and how many times to repeat it. The pairs are unpacked in the…Medium
  4. A tuple is written with commas, and brackets alone do not make one. A student builds five values…Advanced
  5. A tuple holds a list. The program changes the list and then tries to change the tuple. What…Hard
All questions on this topic →

Problems on this topic

  1. Write a program that swaps the values of two variables a and b in one line, without a third…Easy
  2. Choose a list, a tuple, a set or a dictionary for each, and give a reason in one sentence…Easy
  3. Three clubs have these members. Find the students who are in exactly two clubs.Medium
  4. How many letters does mississippi have, and how many different letters?Medium
All problems on this topic →