Accept the first number - num1=int(input("Enter the first number:")), Accept the second number - num2=int(input("Enter the second number:")), Add the 2 numbers - result=num1+num2, Display the result of addition - print(result),

Add 2 numbers in Python

Leaderboard

Visual style

Options

Switch template

Continue editing: ?