Frozen Set

Medium Sets PRO
🔒 Login to Unlock

Problem Statement

Write a Python program to create an immutable `frozenset` from elements and print it as a sorted list representation.

Input Format

Space-separated elements.

Output Format

Print sorted list from frozenset elements.

Constraints

Valid elements

Sample Input

apple banana cherry

Sample Output

['apple', 'banana', 'cherry']

Explanation

Frozensets are immutable sets created using `frozenset()`.

Starter Code

def create_frozen(elements):
    # Write your code here
    pass

elements = input().split()
print(sorted(list(create_frozen(elements))))

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