Tuple Challenge

Medium Tuples
Solve in Playground →

Problem Statement

Write a Python program to find the maximum and minimum elements from a tuple of numbers and print them formatted as `Max: {mx}, Min: {mn}`.

Input Format

Space-separated numbers.

Output Format

Print Max and Min values.

Constraints

1 <= len(tup) <= 100

Sample Input

5 12 3 8 20

Sample Output

Max: 20, Min: 3

Explanation

Tuples support aggregation functions like `max()` and `min()` directly.

Starter Code

def tuple_min_max(tup):
    # Write your code here
    pass

tup = tuple(map(int, input().split()))
tuple_min_max(tup)

Limits

  • Time Limit: 1s
  • Memory Limit: 256MB

Embedded C Programming

Updated: March 15, 2026
Intermediate

Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used