Print Formatted Output

Easy Getting Started with Python
Solve in Playground →

Problem Statement

Write a Python program to calculate the sum of 5 and 3 using variables, and print the complete mathematical expression showing the evaluation.

Input Format

None

Output Format

Print equation evaluation.

Constraints

None

Sample Output

5 + 3 = 8

Explanation

In Python, you can store numbers inside variables and perform mathematical operations on them. To print a mix of text, variables, and math results together seamlessly, we use an f-string (formatted string literal). By placing an f before the opening quotation mark, any variable or expression wrapped inside curly braces {} will automatically be evaluated and converted into text.

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