Skip to content

Git-Hubians/Python-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Python Program โ€“ Sum of Two Numbers

๐Ÿ“Œ About the Project

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.


โš™๏ธ Code Implementation

num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
sum = num1 + num2
print("The sum is:", sum)

๐Ÿ’ก Example Output

Enter the first number: 5  
Enter the second number: 10  
The sum is: 15.0

๐Ÿ–ผ Visual Explanation

Notability Style Python Code

๐Ÿ’ป Program Execution (VS Code)

VS Code Program Execution

๐Ÿง  How It Works

  1. Takes input from the user (two numbers).
  2. Converts them to float (so decimal numbers work too).
  3. Adds the two numbers together.
  4. Displays the result in a clean format.

๐Ÿš€ Run the Program

To run it locally, open your terminal and type:

python Exercise1.py

๐ŸŒˆ Skills Practiced

  • ๐Ÿงฉ Variables
  • ๐Ÿ”ข Data Types (float)
  • ๐Ÿงฎ Arithmetic Operators
  • ๐Ÿ’ฌ User Interaction (input & print)

๐Ÿง‘โ€๐Ÿ’ป Author

Rawan Aldawsari ๐Ÿ“ง raldawsari.cs@gmail.com ๐Ÿ”— LinkedIn | ๐Ÿ’ป GitHub


```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages