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. Quizzes
  2. /d = {"x": 3, "y": 5}. What does print(max(d, key=d.get)) show?
Python ProgrammingEasyHigh School (9–10)High School (11–12)UndergraduateGeneralPython Essentials › Essentials Projects
StemPy LabCreated by StemPy Lab

d = {"x": 3, "y": 5}. What does print(max(d, key=d.get)) show?

Log in to save
← All Quizzes
← counts = {} and then print(counts.get("z", 0)). What is shown?A sorted list has 8 marks. At most how many steps does a binary search need? →
More onPython Essentials › Essentials Projects

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. commands = {"hi": greet}, where greet is a function. What does commands["hi"]() do?Medium
  2. ranked = sorted([("Asha", 72), ("Ravi", 85), ("Meera", 64)], key=lambda p: -p[1]). What is…Medium
  3. A message was coded with a shift of 19. Which shift, from 0 to 25, decodes it with the same…Medium
  4. contacts = {"ravi": "98765"}. What does contacts.get("Ravi".lower()) give?Medium
  5. A student keeps the contacts in a list of pairs, and searches it with a for loop for every lookup.…Hard
All questions on this topic →

Problems on this topic

  1. Write a function above_mean(marks) for a dictionary of name and mark.Medium
  2. Choose a project: a program that keeps the scores of a quiz game and shows who is winning.Easy
  3. Write three small functions square(n), double(n) and negate(n), and a dictionary operations that…Medium
  4. The sorted marks are 64, 78, 78, 85, 92.Hard
All problems on this topic →