Python program to do arithmetical operations

Опубликовано: 17 Октябрь 2021
на канале: 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.
===============================================


Смотрите видео Python program to do arithmetical operations онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CodeLSC 17 Октябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 34 раз и оно понравилось like людям.