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

in steemgigs •  7 years ago 

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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

1.78% @pushup from @funatoz

Thank you @funatoz for making a transfer to me for an upvote of 0.67% on this post! Half of your bid goes to @budgets which funds growth projects for Steem like our top 25 posts on Steem! The other half helps holders of Steem power earn about 60% APR on a delegation to me! For help, will you please visit https://jerrybanfield.com/contact/ because I check my discord server daily? To learn more about Steem, will you please use http://steem.guide/ because this URL forwards to my most recently updated complete Steem tutorial?

Sneaky Ninja Attack! You have been defended with a 0.98% vote... I was summoned by @funatoz! I have done their bidding and now I will vanish...Whoosh

This post has received a 2.71 % upvote from @aksdwi thanks to: @funatoz.

?php

echo "Really helpful information";

?>