Python tutorial: Basic part #3 ( How to add variable and use of operator)

Words
257
Reading
2 min
Listen
Play
9y

welcome to all who want to learn coding in python. And i am trying to make it as simple as possible so that anyone can understand it, here in this class of python. we are going to learn "how to assign the value to variable", "what is operator", "how to use the operators", "how to perform simple math problem in python"

python how to perform math operation.png

this is the programming on python.
this is the 3rd part of the tutorial.
so this we will learn to add two variable
Let's take two variable 'a' and 'b'
a=24
b=21
let's check our values.
a
24
b
21
so here we can get the same get value, we assign.
now we have to use "operators".
operators are the sign (+,-,/,) used in math.
lets take variable 'c'.
c=a+b # here we perform addition of two variable
c # as we enter 'c' we get value of a+b
45
so in same way, we can perform subtract, multi, or divide
c=a-b
c
3
c=a
b
c
504
c=a/b
c
1.1428571428571428
so in this manner, we can perform add sub multiplication division.
thanks for this time we do learn more about the variable in next class.

thanks for visiting this blog and my intention is just to create value to this platform, so if you may find it valuable please do upvote and share, feel free to express your query and suggestion.

National_Thank_You_Day.png

Python tutorial: Basic part #3 ( How to add variable and use of ope... | Ecency