3 How to Implement Basic Mathematical Calculation and Operation in Python Code?

Опубликовано: 09 Октябрь 2024
на канале: Free Tutorial TV
3
1

This video Tutorial is all about basic of Mathematical calculation in Python

So first of all we will open the IDLE IDE from start menu.

So we are going to open this IDLE IDE.
Some of you who are already familiar with Python.
And have some experience

with Python .
May think that.

Why am I using this IDE.


Because there are many better IDE's and editors available for the development.


And don't worry I will show you everything how they install other IDE's which are used in

the development of Python in step by step manner.

LET ME INCREASE THE FONT SIZE for Better view.



Now let's start with the basic math operations.
OK, let's say I want to add something so I can just write a number plus which is operator and the other

number and then press enter and you will get the result of this expression.



Now let's try the subtraction.



Now let's say I want to subtract 60 minus 50 and then press and and gives the result.
And for negative

subtraction.



Now I'm going to just write minus 60 plus 50 and then press enter and result is -10 which is a negative value.
let's do that division.

So for example I want to divide 50 by 3 ,
I'm going to press enter and you can see it gives me a floor value or decimal value.



And if you are familiar with other languages like Java C++ this may be a little bit strange to you because

when you do the same operation in Java or C++ with this division OPERATOR You will get the different

answer which is 16 and not the decimal value.
**************************************************************************
please like and follow us in Facebook and Instagram.
facebook:   / technologytv  

Instagram:   / heikhamsingh  

Twitter:   / hanandkumarsing