Building a Basic Calculator | Python | Tutorial 9

Giraffe Academy is rebranding! I’ve decided to re-focus the brand of this channel to highlight myself as a developer and teacher! The newly minted Mike Dane channel will have all the same content, with more to come in the future!

Source Code –

This video is one in a series of videos where we’ll be looking at programming in python. The course is designed for new programmers, and will introduce common programming topics using the python…


  1. I'm new to python and I decided to try your tutorial. I know ther's differences between Python 2.7 and Python3.x. So after trying to figure out how to get visual studio code to work. I followed your example and it worked the first time. Then I tried again and its like the print function isn't working. Maybe could you watch my example and give me some advice?

  2. A calculator isnt only used to add but also to subtract, divide and multiply. This video should be retitled to save time to the ones who are looking for calculator code. 🙂

  3. One thing with using a float when you're accepting integers too is that whole numbers will look like x.0 because they're floats and need a decimal value. A workaround is to do this:

    if result == int(result):
    result = int(result)

Leave a Reply

Your email address will not be published.