Simple Calculator

Medium Decision Making
Solve in Playground →

Problem Statement

Write a Python program that takes two numbers and an operator (+, -, *, /) and performs the corresponding calculation.

Input Format

Two numbers and an operator separated by spaces (e.g., '10 5 +').

Output Format

Print the calculation result.

Constraints

Valid operator; no division by zero.

Sample Input

10 5 +

Sample Output

15.0

Explanation

Use conditional checks or match-case on the operator string to select the arithmetic operation.

Starter Code

# Write your code here

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