Course Content

Using Python As A Calculator

First of all, I would like to tell you one thing - the main motive of using Python is not to do raw calculations. You will perhaps never use python to calculate 3+8 or 34*232 for that matter.

Yeah, that’s true! Python is not just limited to do calculations. It has a vast number of uses and has many merits or advantages. Using Python you can do most of the things, such as creating games, apps, software, websites, etc. 

  • To do calculations in Python, open Windows PowerShell (or terminal of your choice if you are on Linux or Mac) and type, "python" to open the Python interpreter. You will see a screen like this:

 

  • Then simply type or put whatever mathematical calculation you want to do. 5+9, 6-9 choice is all yours!

When you type python, you are inside an interactive python shell where you can type anything and the value is displayed on the screen after the computation. That's how you can use python as a calculator.

 

And that’s how you can easily do any type of mathematical calculation in Python. I hope you are enjoying this series of videos :)

Comments(5)

nikey123 6 months, 1 week ago
print("enter your 1st number")
n=input()
print("enter your 2nd number")
n1=input()
print("you entred",int(n) + int(n1) )
Vivek-Mishra 4 months, 2 weeks ago
Full Notes and Source Code: https://github.com/Optimized-World/Complete-Python-Tutorial-and-Notes
Vivek-Mishra 4 months, 2 weeks ago
Remaining Codes will be updated Soon.

Thanks, Harry Bhai for Awesome Tutorials
ankit100 2 months ago
a = "ankit"
b = 'Harry sir'
c = (a+b)
print(c)
output : Harry is the best teacher
             Ankit is the best student
tony123 5 days, 18 hours ago
You also play Grand Theft Auto 5 (Mine just got hacked)

Resources

  1. File - Download here
  2. File - Download here
  3. File - Download here

Course Announcements

Any Course related announcements will be posted here