Learn to Program 22 : Python Calculator

[ad_1]
Code & Cheat Sheet :

Interactive Tutorial :

Best Python Book :

Support me on Patreon :

In this part of the Learn to Program series we make a working calculator from start to finish in one video. We create a Use Case Description to figure out exactly what must occur in the program step-by-step. We then create a calculator object, convert the use case into code, create the GUI interface using TkInter and end with homework you should solve to improve your programming abilities.

If you missed any of the previous videos, the series starts here :

Thank you to Patreon supports like the following for helping me make this video

@kyleaisho
@thetwistedhat
vjFaLk


Posted

in

by

Tags:

Comments

36 responses to “Learn to Program 22 : Python Calculator”

  1. Kernel Avatar

    I keep getting this style.configure("TEntry", font="Serif 18", padding=10)

    TabError: inconsistent use of tabs and spaces in indentation

  2. Gaming ST Avatar

    I got a problem with one line "calc = Calculator: root" it does not allow me to run the calculator at all. Please Help me

  3. Arb Hunter Avatar

    Great stuff again …

  4. armin oldboy Avatar

    derek can u give me your email addres ??

  5. Alwayss Bijoy Avatar

    Please add "AC" button
    first call a function and then call it in 4th row
    then AC button will work

  6. Johnny Metz Avatar

    Why do you need lambda here? In the previous video you didn't use/need it.

  7. Parafian12 Avatar

    Derek,
    What are the consequences that you didn't convert isfloat into staticmethod?
    thank you for video, you are amazing,

    and old hehe

  8. ALLAINE GAMING Avatar

    Derek Banas i only work snake game in python theres no error and its easy.

  9. ThePoop 00 Avatar

    Just change the text"c" to fix it

  10. MikeChitwoodArt Avatar

    I have the same exact code running in python 3.6 but the numbers are not ever getting deleted in the display. they just stay there. Not sure where the error is. No solution is given.

  11. John Sutton Avatar

    Why is Tkinker 404

  12. sander riska Avatar

    it stand invalid Syntax // line 1 : from tkinter import * // can not find the right thing to change i just watch my code and i cant find anything that are wrong with it i have watchen it like 40 times and see the syntax error idk i can launch it without problems but it keep coming error// syntax plzz help me out

  13. ALLAINE GAMING Avatar

    that's impossible to create the calculator my coding is correct but its says Error. god dang it

  14. yakoub koubi Avatar

    nice vid thx keep up the good work :3

  15. yuval gerstein Avatar

    Thanks for an awesome tutorial once again. Could you possibly give a
    hint as to how to implement the AC button to clear everything? Thanks!

  16. Keith Lashley Avatar

    great tutorial but how do I change the size and color of the buttons? If anyone would help me with this I would greatly appreciate it. I would prefer to know how to do it by entering a string as it would give me the ability to make random colors.

  17. TK Powdyel Avatar

    How to publish it to the website so ppl can view it?? I'm sorry I know it might be silly question to you all… I've just started python few weeks ago

  18. Cady Kagume Avatar

    AttributeError: 'Calculator' object has no attribute 'number_entry'… please help.

  19. Cady Kagume Avatar

    I'm not getting the relationship between entry_val and number_entry. I have an error on it, but not sure what I'm missing in these definitions. Derek?

  20. Karthikeyan B Avatar

    Hi Derick, how to handle the zero divisional error in this calculator??

  21. Karthikeyan B Avatar

    Hi Derick, how to handle the zero divisional error in this calculator??

  22. aWildTomAppeared Avatar

    things like 2.8-2 in python are borked

  23. Ignacio Ampuero Avatar

    Tkinter doesnt work and i cant find out why. Can some one help. It says: ImportError: cannot import name 'tkk'

  24. sebastian korpelainen Avatar

    so i have a problem where when you get a high / low enuff number so that it replaces the numbers with some text, if i then press any number then "=" it will stop working, is this the bug or did i screw up?

  25. Mhmd alharbi Avatar

    Thank you, but use programming to design ui so tired, is there gui builder?

  26. Patrick Smith Avatar

    Derek Banas! Your tutorials are awesome! Could you make a tutorial on programming portfolios? 🙂

  27. codemasterz Avatar

    Hey Derek. I`m having a problem which I cannot solve : self.number_entry.delete(0, "end") TypeError: 'bool' object is not callable. Probably because of this when I`m trying to run the program it only takes numbers. As soon as I press any character I get this error. From what I see the problem comes from calling number_entry.delete as a method when in fact it is an object.

  28. The5starSTUNNNA Avatar

    Hey man can you make another project like this this was amazing i subbed 5 stars video ***

  29. Mike Nelson Avatar

    amazing like always

  30. Muhammet Şavklıyıldız Avatar

    U are best. But u are old. I'm joking 😀 Thanks for video <3

  31. Matthew Judy Avatar

    I believe JavaScript

  32. chris lustic Avatar

    this channel is a heavy heavy source of information,
    I'm happy I found it

Leave a Reply

Your email address will not be published. Required fields are marked *