HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Learn how to add two numbers in Python
In this example, the user must input two numbers. Then we print the sum by calculating (adding) the two numbers:
x = input("Type a number: ")
y = input("Type another number: ")
sum
= int(x) + int(y)
print("The sum is: ", sum)