DataDriven
LearnPracticeInterviewDiscussDailyJobs

Write a function called min_max that takes a list and returns a tuple of (minimum, maximum) using mi

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium

Problem

Write a function called min_max that takes a list and returns a tuple of (minimum, maximum) using min() and max(). Call it with [45, 12, 89, 34, 67], unpack the result into two variables, and print 'Min: 12' then 'Max: 89'.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons