Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add two numbers in python

# This program adds two numbers

num1 = 1.5
num2 = 6.3

# Add two numbers
sum = num1 + num2

# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #add #numbers #python
ADD COMMENT
Topic
Name
7+7 =