Python program to do arithmetical operations

Published: 17 October 2021
on channel: CodeLSC
34
like

Python is a simple, general purpose, high level, and object-oriented programming language.

Python is an interpreted scripting language also. Guido Van Rossum is known as the founder of Python programming.
----------------------------------------------------------------------------------------------------------------
#Code :
Store input numbers:
num1 = input('Enter first number: ')
num2 = input('Enter second number: ')

Add two numbers
sum = float(num1) + float(num2)
Subtract two numbers
min = float(num1) - float(num2)
Multiply two numbers
mul = float(num1) * float(num2)
#Divide two numbers
div = float(num1) / float(num2)
Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

Display the subtraction
print('The subtraction of {0} and {1} is {2}'.format(num1, num2, min))
Display the multiplication
print('The multiplication of {0} and {1} is {2}'.format(num1, num2, mul))
Display the division
print('The division of {0} and {1} is {2}'.format(num1, num2, div))
----------------------------------------------------------------------------------------------------------------
#pythonprogram
#code
#learnpython
========================================
keywords:
Python in Tamil,Learn Python tutorials for beginners,Python course in tamil, complete python course for beginners in tamil,Python complete guide, python concepts in tamil,Python introduction in tamil,Python full course in tamil, Pycharm installation in tamil,Python installation in tamil,what is python in tamil, what is python and why it is used,Arrays in python,function in python,list and dictionary in tamil,variables in python,how to install python in tamil, how to learn python in tamil,python in tamil language,python in tamil.
===============================================


Watch video Python program to do arithmetical operations online without registration, duration hours minute second in high quality. This video was added by user CodeLSC 17 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 34 once and liked it like people.