Adicionando números usando a função python
# Welcome to softhunt.net
def adder(x,y,z):
print("sum:",x+y+z)
adder(78,34,12)
Outrageous Ostrich
# Welcome to softhunt.net
def adder(x,y,z):
print("sum:",x+y+z)
adder(78,34,12)
#create two variable to store the user input number
num1 = int(input('Enter the first number: '))
num2 = int(input('Enter the second number: '))
#create a third variable to store the sum of two no.s
sum = num1 + num2
print('The sum of two entered numbers is:', sum)
a = int(input("Enter first number:"))
b = int(input("Enter second number:"))
sum = a+b
print(sum)
num1 = int(input('any number'))
num2 = int(input('any number'))
print(sum(num1,num2))
a = int(input())
b = int(input())
s = a+b
print(S)
# 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))