Sum up Two Numbers from User Input
Level 1: Beginner
Project Level 1: Beginner.
This project is designed for beginner learners who are still learning and practicing Python fundamentals.
Project Description
This program asks the user to enter two numbers, adds them together, and then displays the result.
Project Skills Needed
This project covers the following concepts. Click any link to learn more about them if you're unfamiliar.
input() function | print() function | strings
How the Project Works
The program starts by prompting the user to enter two numbers in the terminal.
The user inputs the first number and then the second number.
After the user presses Enter, the program adds the two numbers together and displays the result.
Prerequisites
Required Libraries: No libraries are required.
Required Files: No files are required.
IDE: You can use any IDE on your computer to code the project.
Danger Zone
If you get stuck, feel free to view a similar example below for help:
Once you've coded the project, compare it with our solution below:





a=int(input())
b=int(input())
print(f"the sum of two numers is {a+b}")
first_num = int(input("enter first num"))
second_num = int(input("enter second num"))
sum = first_num + second_num
print(f"the sum of two numbers is {sum}")