#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)
num1 = int(input('any number'))
num2 = int(input('any number'))
print(sum(num1,num2))
num1 = int(input('Enter the first number: '))
num2 = int(input('Enter the second number: '))
def sum_input(num1,num2):
sum = num1 + num2
return sum
# 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))
a = int(input("Enter Teh value of a: "))
b = int(input("Enter The value of b: "))
sum = a+b
print(sum)
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:UsersUSER>python
Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:34:34) [MSC v.1928 32 bit (
Intel)] on win32
>>> x = 5
>>> y = 10
>>> print(x + y)
15
def add_by_two(numbers):
return [num + 2 for num in numbers]
num1 = 2.3
num2 = 1.2
print(num1+num2)