In this tutorial, we will learn how we can use python programming language as a calculator. To learn this you should have knowledge of int, str, float:-
Int:- It is integer number like 2, 5, 0, -2 etc.
Str:- It is string means string like a, j, hello, my name etc.
Float:- It is the floating point number like 3.8776, 1.874, 0.176 etc.
So lets start with our first programme, which is addition of two numbers.
So, as we have seen above that the sentence in print command is printed as it is and at last the sum of two numbers is printed.
In our next programme, we will study other calculations like substraction , multiplication etc.
Now, we have enough knowledeg to play with basic calculations.
Now we will try to find square and square-root of the integers.
So, with the help of above programme we have learnt to calculate various types of calculation.
In the next post, we will learn about list, tuples, dictionary and sets.
Hope you like this tutorial. Thanks for reading.
Contact Email - john.veer.utube@gmail.com
Suggest data structures if you want through the above email adress.

Comments
Post a Comment