The Reason we Code is to solve Problems
Programming is not all about Mathematics, it’s about solving problems we face in our daily life, and doing so we sometimes need Mathematics.
So let’s do some simple Mathematics with Python, we’ve chosen Python because it’s easy to learn and has a clear syntax.
I recommend reading my previous article about starting with python https://palash.tk/Simple-Introduction-To-Python-Programming, read that before going further if you’re new to Programming or Python
So let’s start..
If You’ve Opened IDLE or Other REPL you’ll see a prompt like this,
If you’re using Repl.It, on the right pan you’ll also see a prompt like
If nothing wrong happened, goto the next chapter. If you find any problems please comment below the article, I’ll surely help you
Simple Calculations With Python 👀
If you’ve successfully completed the previous chapter, now you have a
> prompt on your screen.
1+2 and press enter. If you’ve done everything correctly you’ll see a output of
>>> 1 + 30 + 2You’ll get 33
>>> 9-8You’ll get 1
>>> 9 * 11You’ll get 99
>>> 444/2You’ll get 222.0
Let’s Do a Complex Calculation ✊
(123456789 + 987654321) * 8
Looking for the answer?
I’ll not tell you, find Yourself using Python 😉 if you’re able to find it , comment your answer below in the comment box 👇.
That’s the fun of Programming 😁
Subscribe to Adventure Of Palash
Get the latest posts delivered right to your inbox