Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python program to add two numbers using function

num1 = int(input('Enter the first number: '))
num2 = int(input('Enter the second number: '))
def sum_input(num1,num2):
  sum = num1 + num2
  return sum
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #python #program #add #numbers #function
ADD COMMENT
Topic
Name
8+8 =