Create Set

Easy Sets PRO
🔒 Login to Unlock

Problem Statement

Write a Python program to create a set from a sequence of space-separated elements and print it in sorted order as a list representation to ensure stable output.

Input Format

Space-separated elements.

Output Format

Print the sorted list of unique set elements.

Constraints

1 <= len(elements) <= 50

Sample Input

apple banana apple cherry

Sample Output

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

Explanation

Sets automatically eliminate duplicates and can be initialized using curly braces or `set()`.

Starter Code

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

elements = input().split()
print(sorted(list(create_unique_set(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