A simple yet elegant Python program that allows the user to input two numbers and instantly displays their sum.
Itโs designed for beginners to understand how input, processing, and output work together in Python.
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
sum = num1 + num2
print("The sum is:", sum)Enter the first number: 5
Enter the second number: 10
The sum is: 15.0
๐ผ Visual Explanation
๐ป Program Execution (VS Code)
- Takes input from the user (two numbers).
- Converts them to float (so decimal numbers work too).
- Adds the two numbers together.
- Displays the result in a clean format.
To run it locally, open your terminal and type:
python Exercise1.py- ๐งฉ Variables
- ๐ข Data Types (float)
- ๐งฎ Arithmetic Operators
- ๐ฌ User Interaction (input & print)
Rawan Aldawsari ๐ง raldawsari.cs@gmail.com ๐ LinkedIn | ๐ป GitHub
```

