Simple Calculator App Tutorial in Python for Beginners

Поділитися
Вставка
  • Опубліковано 3 лис 2024

КОМЕНТАРІ • 201

  • @clowndoglen
    @clowndoglen 3 роки тому +4

    Thanks man - you're clearly a great teacher.
    I'm a 42 year old bloke that's decided to get back into coding (was decent at Basic on the ol' C64 when I was young) to try and keep up with my kids and maybe even one day do something career-wise with it.
    Your vids are very inspiring as I learn infinitely better by actually 'doing' rather than going through independent tutorials on basic commands and trying to put them all together eventually.
    Thanks for explaining so well as you go!

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      You're quite welcome! I'm a bit older than you and got my start coding in BASIC as well. I had a VIC-20 and C64 - glory days! Keep on codin'!

  • @tachitos6022
    @tachitos6022 3 роки тому +1

    Using this to code in a calculus calculator. Not really to make a project but to reinforce what I learned in my calculus courses

  • @bruhifyify5713
    @bruhifyify5713 4 роки тому +5

    the timing is perfect, i was having trouble making a calculator earlier

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому +1

      Glad to hear it!

    • @bruhifyify5713
      @bruhifyify5713 4 роки тому +1

      @@TokyoEdTech i have a question, is it a good idea to learn java after python?

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому +1

      @@bruhifyify5713 It really depends on your purpose. If you want to learn Java, learn Java. That said, I think it is generally easier to learn Java after Python since you already know the basic coding concepts and Java is more complex.

    • @bruhifyify5713
      @bruhifyify5713 4 роки тому +2

      ​@@TokyoEdTech ok, thank you so much!

  • @ibgm9317
    @ibgm9317 3 роки тому +1

    Thank you very very very much. I followed you and wrote everything after you learning everything as much as I could.
    Please continue. I’m your fan from KSA. Do not worry about me being from Middle East. I am one of the good guys hopefully.

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Thanks - glad you found the tutorial helpful. Very happy to have viewers from all over the world - as-salamu alaykum!

  • @petertipping8044
    @petertipping8044 4 роки тому +2

    Loving these tkinter tutorials! Keep up the great work!

  • @alexandersequeira1281
    @alexandersequeira1281 4 роки тому +3

    As soon as you said you will be back, an add played. Perfect timing lol.

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      That UA-cam algorithm knows its stuff!

  • @rohan1096
    @rohan1096 3 роки тому +2

    Thank u sir. I understood everything very clearly. Hats off to u sir.
    I liked the way u seperated into parts and it really helped a lot .
    Can I know whether there is a playlist for these types of tutorials for simple apps .

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Hiya - thanks! I don't have a specific playlist for apps. Sorry.

  • @AlexSmith-rl6lb
    @AlexSmith-rl6lb 3 роки тому +5

    U did a really great job...KEEP ON IT

  • @jazzymilk9996
    @jazzymilk9996 4 роки тому +2

    IVE BEEN WAITING FOR THIS! Oh and I’m learning Japanese I’m been learning for about a month just thought I would share! ども

  • @creativeshooter428
    @creativeshooter428 4 роки тому +2

    Thanks for listening to my request for making a video on creating a calculator and keep up the good work you are an awesome youtuber😁😁😁😁😁😁😁😁😁

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      You're welcome - I can't do all requests, but this one was a natural follow-up to my last video.

    • @creativeshooter428
      @creativeshooter428 4 роки тому

      @@TokyoEdTech OK😄

  • @javo5270
    @javo5270 3 роки тому +3

    I fucking love this channel, am learning so much with these videos, thanks and hats off to you mate

  • @amongus_pvp
    @amongus_pvp 3 роки тому +1

    TYSM my first working python project

  • @nitishsharma8251
    @nitishsharma8251 3 роки тому +1

    Thank you.....it was really helpful....and going slowly helped me understand better

  • @panavsaxena7345
    @panavsaxena7345 3 роки тому +1

    Can we take user input as we did in the BMI app.. so basically, what I want is we can input values 2 ways: i) from the buttons and ii) from the keyboard/user directly without buttons.

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Hiya - yep, this is definitely doable. I've actually already recorded a video on how to do this. It is currently Members Only, but I'll release it to non-members later in the week, or early next week. Keep on codin'!

    • @panavsaxena7345
      @panavsaxena7345 3 роки тому

      @@TokyoEdTech Thanks!

  • @filippians413
    @filippians413 3 роки тому +1

    "The reason why lambda functions become so useful is the fact that it is usually more convenient to use simple and concise lambda notation rather than defining a new function in a traditional way, especially if the function is designed to do only one single operation rather than serve as a repeatable component."
    Still not sure why you need to turn add() into a function but I guess thats how tkinter works. Maybe its supposed to be a callback to execute it? Not sure if I know what Im talking about lol

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      In this case it allows us to pass parameters to the function - otherwise we can only call functions without parameters with tkinter.

  • @ethansofiadada
    @ethansofiadada 3 роки тому +1

    Nicely done once more, Christian. I enjoyed learning about the eval statement. Boy does the GUI always look terrible in Windows, though. Nothing a bit of geometry and button-width adjusting doesn't fix, but yours always looks much nicer! So, I'll finally take a ding on Windows... this time. As a former payroll administrator, I love my ten-key, so is there any way to code in any key bindings to allow for keying in the expressions instead of clicking on them?

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Thanks! Congrats for making it to your second month as a member - hope you like the cool snakehead badge!
      Definitely tkinter is pretty ugly but easy for learning. There is a way to customize it but I haven't done much with that myself - saving it for the future! Yes, there is a way to do that - I'll try to get a video out on that subject for you. Have a good one!

    • @ethansofiadada
      @ethansofiadada 3 роки тому

      @@TokyoEdTech Thanks, but don't worry about making a video for that. I know I asked about the binding, but I quickly realized I don't plan on using Tkinter and just watch the tutorials for the new code you bring to it (like eval). Thanks though!
      And woot on my second month! I commented on Discord about it and the badges, but I didn't use a "@", so I guess you don't get notified? I don't either (even with the "@", but I just check it for a couple seconds every day. I don't use Twitter, so I tend to find the "@" thing a bit silly, but that's just me behind on the times! ;)
      As for the snake, now I see it. I thought it was an alien at first, so you'll understand why I questioned the badges in my Discord comment. Cool beans now, but I still can't make out what the next image is. Brain? Mushroom?

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      I don't get notifications for Discord unless I'm on my tablet (but you do need the @ mark). The next image is supposed to be a pong paddle, but I need to redo the dimensions as it got sqashed!

    • @ethansofiadada
      @ethansofiadada 3 роки тому

      @@TokyoEdTech Ohhh! That's what it is! My next guess was one of those bloaty things from Mass Effect! ;)

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      @@ethansofiadada Close! lol

  • @Shenal_Nimsara
    @Shenal_Nimsara 3 роки тому +2

    You are a real coder.best work

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      Thanks!

    • @Shenal_Nimsara
      @Shenal_Nimsara 3 роки тому +1

      I saw this youtube channel today .if i saw it before i watch all the videos in this channel.this is best youtube channel.i started watching your videos today.them are super.I hope i can watch all the python and java videos.I subscribed this channel and i will share this to my friends.good luck 👍

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      Thanks - back at you!

    • @Shenal_Nimsara
      @Shenal_Nimsara 3 роки тому

      can you give me the codes of calculator please?

  • @honeyd5550
    @honeyd5550 Рік тому +1

    does this app follow order of oporation? Or just they way you enter it

    • @TokyoEdTech
      @TokyoEdTech  Рік тому +1

      It should follow order of operations.

  • @teacherinthailan6441
    @teacherinthailan6441 3 роки тому +1

    Excellent! Thank you so much!

  • @mateaandmilos
    @mateaandmilos 4 роки тому +1

    tkinter looks super easy to start learning :)

  • @canadianbro9327
    @canadianbro9327 4 роки тому

    Hi sir, where do you write codes and where do you run them? I mean which programs should I download?
    My laptop's operation system is Windows 10

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      You’re in luck - I’ve made a video about this exact topic. Enjoy! ua-cam.com/video/4bL-lCP2tec/v-deo.html

  • @MrKirshoff
    @MrKirshoff 3 роки тому

    very clear and clean code! thank u so much.

  • @damnischannel
    @damnischannel 2 роки тому +1

    I think after you press = it shouldn't continue using the original expression.
    2+2*3=8
    2+2=4 and then *3 should give 12
    This calculator continues giving 8 as result.
    Adding this at line 35 "expression = str(result)" seems to work. Is it correct? I'm still learning :D

    • @TokyoEdTech
      @TokyoEdTech  2 роки тому +2

      I agree. As long as your code works, the it is ok!

  • @Aarush_2008
    @Aarush_2008 4 роки тому +1

    THX FOR THIS GREAT TUTORIAL

  • @spon._.
    @spon._. 2 роки тому +3

    imagine using the calculator app so parents thought you are coding, but you cheated on math exam
    (thanks btw)

  • @muhammadkabir6596
    @muhammadkabir6596 3 роки тому

    This is really great was having problems earlier but with this am satisfied

  • @nawid1687
    @nawid1687 4 роки тому

    I was waiting for this!!

  • @peterchaaya7863
    @peterchaaya7863 4 роки тому +1

    did this coding works on python in vscodes ?

  • @yashsapre1711
    @yashsapre1711 2 роки тому +2

    when I run it everything was okay but answer is not comming after pressing "=" button

    • @TokyoEdTech
      @TokyoEdTech  2 роки тому

      Gotta share your code, otherwise I can't help you.

  • @jolualuko7802
    @jolualuko7802 2 роки тому +1

    Very helpful
    But please how do I add a square root and square command

    • @TokyoEdTech
      @TokyoEdTech  2 роки тому

      Use the same basic coding structure and to square something you'd add:
      ** 2
      For square root you'd add:
      ** 0.5
      Good luck!

  • @lotfibelabbas8411
    @lotfibelabbas8411 3 роки тому +1

    i have a problem with the dot button
    File "", line 1
    19.9+ 7 .5
    ^
    SyntaxError: invalid syntax
    i solved the problem

  • @israelpadonu5351
    @israelpadonu5351 4 роки тому +2

    I added a delete button to delete a number if I made a mistake

  • @xithcal8439
    @xithcal8439 4 роки тому

    Your videos really help, keep up the good work :) I am trying to add extra features to the calculator and I noticed that if the number on the result label is 13 digits or more the GUI becomes all messd up (the space between the button becomes to large), do you have any solutions?

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому +1

      Hmmm...you'd probably have to play around with the size of the buttons by making them larger from the beginning. Check the docs on how to do that.

    • @xithcal8439
      @xithcal8439 4 роки тому

      @@TokyoEdTech Thank you I'll try that

  • @superkb172
    @superkb172 4 роки тому

    Great tutorial and do you plan to mix tk and turtle to create games?

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      Thanks. I wasn't planning on it although it is possible. The turtle module is built on top of tkinter.

    • @superkb172
      @superkb172 4 роки тому

      @@TokyoEdTech cool! And have an amazing day

    • @superkb172
      @superkb172 4 роки тому

      @@TokyoEdTech hello, could this be done in turtle or could the two tk and turtle mix? pastebin.com/W5v46fxD
      Oh pydroid 💯

  • @bruhifyify5713
    @bruhifyify5713 4 роки тому +1

    i have a question, whats the best IDE for python?

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      "Best' is a personal choice, but here's what I've used: ua-cam.com/video/4bL-lCP2tec/v-deo.html

    • @MarkCrowtherTheTester
      @MarkCrowtherTheTester 3 роки тому

      Consider PyCharm

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      @@MarkCrowtherTheTester Probably not gonna happen, but if it works for you all good!

  • @guyincognito5614
    @guyincognito5614 3 роки тому +1

    loving it

  • @tentative_iv6398
    @tentative_iv6398 3 роки тому

    Any suggestion on the most probable reason there are spaces between the columns?

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      By default there is a certain amount of padding.

    • @tentative_iv6398
      @tentative_iv6398 3 роки тому

      @@TokyoEdTech Thanks. I can live with it. The calculator works perfectly.

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      @@tentative_iv6398 I'm with you on that - function > design!

  • @tomt7028
    @tomt7028 3 роки тому

    You mentioned that using global variables is considered bad practice, so how would you do this without using them?

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      Typically, you'd create a class such as Game and then run everything inside the Game class.

  • @pablobarbozacanal
    @pablobarbozacanal 3 роки тому +1

    thankyou brow! continue

  • @paradox9879
    @paradox9879 4 роки тому +2

    First ❤️❤️

  • @baneofcronus6979
    @baneofcronus6979 4 роки тому +1

    I ran into a slight problem here. If you insert a zero before a significant whole number, python gives this error message:
    "SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers"

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      Interesting. Doesn't the try/except block catch that?

    • @baneofcronus6979
      @baneofcronus6979 4 роки тому

      It does. The try except block throws up an error every time that happens.

    • @baneofcronus6979
      @baneofcronus6979 4 роки тому

      The error is shown when you try on the command prompt. If you run the calculation in the shell, you get "SyntaxError: invalid token"

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому +1

      @@baneofcronus6979 Interesting - I guess that is a rule in Python. So, you need to avoid entering a 0 at the start of a number. So use 8 instead of 08. Not sure why you would add a 0 at the start of a number though.

  • @goodtechnation3075
    @goodtechnation3075 4 роки тому

    Thanks for this video, helped me learn a lot plus create my own calculator lol.. Curious though how would you create a Delete button?

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому +1

      You're welcome.
      A delete button would be pretty straightforward. Create the button. Create the function. In the function get the current formula and then do something like this:
      string = "12345"
      string = string[0:len(string)-1]

    • @goodtechnation3075
      @goodtechnation3075 4 роки тому

      @@TokyoEdTech I’m going to give it a shot

    • @goodtechnation3075
      @goodtechnation3075 4 роки тому

      @@TokyoEdTech Done and thanks again!
      def delete():
      If expression != “ “:
      expression = expression[0:len(expression)-1]
      label_result.config(text=expression)

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      @@goodtechnation3075 Awesome - thanks for sharing!!!!

  • @nexgenofficial665
    @nexgenofficial665 4 роки тому +1

    Brother, can you make app making series? With tkinter, It will be great!

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      Hiya - do you mean mobile apps? If so, as far as I know you cannot use tkinter for that purpose.

    • @nexgenofficial665
      @nexgenofficial665 4 роки тому

      @@TokyoEdTech ohh!
      Then I have heard that kivy MD is a best platform for mobile apps?

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      @@nexgenofficial665 I've heard about Kivy for making apps in Python, but haven't tried it myself yet.

    • @nexgenofficial665
      @nexgenofficial665 4 роки тому

      @@TokyoEdTech no problem. Thanks!

  • @evid3nt
    @evid3nt 3 роки тому +1

    not sure how to pause this
    youtube:we got you
    'ad starts playing'

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      UA-cam giveth when thou needeth!

  • @radbiomedicalengineeringpl9810
    @radbiomedicalengineeringpl9810 3 роки тому

    i am really appreciate keep it up tnx for share is for us

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      No worries - glad to help! Keep on codin'!

  • @yassinezanned8187
    @yassinezanned8187 3 роки тому

    Thank you so much sir

  • @simran9161
    @simran9161 2 роки тому +1

    Thanku sooo much🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺💝💝💝

  • @muhammadnazhimmaulana6315
    @muhammadnazhimmaulana6315 3 роки тому

    I want to ask, why when I execute the code the size of the buttons are not the same as yours in the video? (I have followed the steps carefully)

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Not sure - I'd have to see your code.

    • @dhirajsarkar7246
      @dhirajsarkar7246 3 роки тому

      Use height= , width= some no. According to what u want

    • @muhammadnazhimmaulana6315
      @muhammadnazhimmaulana6315 3 роки тому

      import tkinter
      root = tkinter.Tk()
      root.title("Kalkulator")
      # Membuat function
      def add(value):
      print(value)
      def clear():
      pass
      def calculate():
      pass
      # Membuat tampilan
      label_result = tkinter.Label(root, text="")
      label_result.grid(row= 0, column= 0, columnspan=4)
      button_1 = tkinter.Button(root, text="1", command=lambda: add("1"))
      button_1.grid(row=1, column=0)
      button_2 = tkinter.Button(root, text="2", command=lambda: add("2"))
      button_2.grid(row=1, column=1)
      button_3 = tkinter.Button(root, text="3", command=lambda: add("3"))
      button_3.grid(row=1, column=2)
      button_devide = tkinter.Button(root, text="/", command=lambda: add("/"))
      button_devide.grid(row=1, column=3)
      button_4 = tkinter.Button(root, text="4", command=lambda: add("4"))
      button_4.grid(row=2, column=0)
      button_5 = tkinter.Button(root, text="5", command=lambda: add("5"))
      button_5.grid(row=2, column=1)
      button_6 = tkinter.Button(root, text="6", command=lambda: add("6"))
      button_6.grid(row=2, column=2)
      button_times = tkinter.Button(root, text="*", command=lambda: add("*"))
      button_times.grid(row=2, column=3)
      button_7 = tkinter.Button(root, text="7", command=lambda: add("7"))
      button_7.grid(row=3, column=0)
      button_8 = tkinter.Button(root, text="8", command=lambda: add("8"))
      button_8.grid(row=3, column=1)
      button_9 = tkinter.Button(root, text="9", command=lambda: add("9"))
      button_9.grid(row=3, column=2)
      button_minus = tkinter.Button(root, text="-", command=lambda: add("-"))
      button_minus.grid(row=3, column=3)
      button_clear = tkinter.Button(root, text="C", command=lambda: clear())
      button_clear.grid(row=4, column=0)
      button_0 = tkinter.Button(root, text="0", command=lambda: add("0"))
      button_0.grid(row=4, column=1)
      button_dot = tkinter.Button(root, text=".", command=lambda: add("."))
      button_dot.grid(row=4, column=2)
      button_plus = tkinter.Button(root, text="+", command=lambda: add("+"))
      button_plus.grid(row=4, column=3)
      button_equal = tkinter.Button(root, text="=", width=16,command=lambda: calculate())
      button_equal.grid(row=5, column=0, columnspan=4)
      root.mainloop()
      How is it, that's my code

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      @@muhammadnazhimmaulana6315 I think the size is determined by your OS - on Mac, the buttons are really small. As Dhiraj says, you can manually change the height and width.

    • @muhammadnazhimmaulana6315
      @muhammadnazhimmaulana6315 3 роки тому

      @@TokyoEdTech Okay, I only need to change the size myself right?

  • @joshgleeson2242
    @joshgleeson2242 3 роки тому

    After finishing the equals button columnspan there's huge gaps between each button, what do I do to fix it?

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      You have play around with the size (width/height) and make sure the columns are aligned correctly. If you share your code I can take a look.

    • @joshgleeson2242
      @joshgleeson2242 3 роки тому

      @@TokyoEdTech I did exactly what you did, both tutorials, then to make sure I did everything correctly I checked the github code and mine was the exact same.

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      It's easy to miss something small. If you share your code I'll take a look.

    • @joshgleeson2242
      @joshgleeson2242 3 роки тому

      @@TokyoEdTech To be honest I'm fine with it, since I mainly are following tutorials to learn how to program in various languages. Ty though!

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому +1

      You're welcome - keep on codin'!

  • @swastiksarkar
    @swastiksarkar 4 роки тому

    I can't figure out how the buttons turn out to be squarish rather than rectangular though you did not add height to them.

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      It's automatically sized.

    • @swastiksarkar
      @swastiksarkar 4 роки тому

      @@TokyoEdTechmy buttons looks thin when I create them. Why is it diffferent? I have to add manual padding to make a square shaped button like yours.

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      @@swastiksarkar It'll vary by system and font.

  • @mrurbo
    @mrurbo 3 роки тому

    can you make a tutorial on how to make this full color?

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      I think you just use fg and bg or something like that to change the text and background color of the buttons.

  • @newpheeraphat5495
    @newpheeraphat5495 3 роки тому

    Thank you

  • @noobcraft5712
    @noobcraft5712 4 роки тому +1

    You should make a gaming channel to play game's like among us, mincraft and all the other game's.

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому +1

      Thanks, but I am not a gamer. Also I prefer open source software so check out Minetest instead of Minecraft.

    • @noobcraft5712
      @noobcraft5712 4 роки тому

      Ok

    • @noobcraft5712
      @noobcraft5712 4 роки тому

      You don't need to be a Gamer to play game's.

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      True - but if you are going to start a UA-cam channel about gaming you should be interested in the topic and know something about it.

  • @BF2042Pro
    @BF2042Pro 3 роки тому +1

    21:43
    I keep getting an error for expression as “Undefined”

    • @BF2042Pro
      @BF2042Pro 3 роки тому +1

      Doesn’t matter, I was doing this within multiple functions as I was making a pretty large program
      Video really helped thanks 👍

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Good to hear.

  • @gardener_leaftail
    @gardener_leaftail 3 роки тому

    Well I'm going to try this right now. I hope this works

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Good luck!

    • @gardener_leaftail
      @gardener_leaftail 3 роки тому

      Wait nevermind that was addressed in the video. Tkinter seems like a pain to work with

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Yes and no. GUI coding is pretty easy overall but there are lots of little details to keep track of.

  • @Bronzenical
    @Bronzenical 4 роки тому +1

    can u give ma a link for your phyton please

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      Check the description (Geany).

  • @ashwins4776
    @ashwins4776 4 роки тому

    Best tutorial....

  • @parthgupta4850
    @parthgupta4850 4 роки тому +2

    But also not the last

  • @bellotolulope5430
    @bellotolulope5430 3 роки тому

    i keep getting this error message:
    "module 'tkinter' has no attribute 'label'

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Hiya - try Label with a capital L.

  • @shaharyarahmed5777
    @shaharyarahmed5777 4 роки тому

    what about space arena?

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому +1

      I want to get back to it but I've been waiting to get my work computer which has the code on it. Back to work tomorrow so stay tuned!

  • @parthgupta4850
    @parthgupta4850 4 роки тому +2

    Not first

  • @TheWasian
    @TheWasian 3 роки тому

    Hi I have a question, the calculator GUI keys keeps expanding and moving. I don't know how to fix it. Could you help please?

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      Make sure you are using the correct grid coordinates - double check.

  • @awesome_pi_guy
    @awesome_pi_guy 4 роки тому

    Could you make a algebra calculator

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      I'm not really sure how to go about that - what makes it different from a regular calculator?

    • @awesome_pi_guy
      @awesome_pi_guy 4 роки тому

      @@TokyoEdTech It trys to solve for x

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      Oh..you're on your own on that one!

    • @awesome_pi_guy
      @awesome_pi_guy 4 роки тому

      @@TokyoEdTech Ok

    • @kromydas5063
      @kromydas5063 4 роки тому

      @@awesome_pi_guy If you are talking about quadratic, you could implement the quadratic formula on a given quadratic to solve. Other wise, you would have to perform some other algorithms to solve for x.
      For ex:
      if you have 3x +6 = 18,
      the program should go through the side with x in it.
      It sees the 6 that doesn't have a x.
      It subtracts it on both sides.
      So now it has 3x = 12.
      Then, repeat this process till x is by itself.
      Then, you divide 3 on both sides.
      The code gets x = 4. Because x is by itself and there is no number be multiplied to it, it means x is 4 and then it outputs the answer.

  • @rrickyy
    @rrickyy 2 роки тому

    nice

  • @ashwins4776
    @ashwins4776 4 роки тому

    I don't have computer , now how can i learn python?

    • @TokyoEdTech
      @TokyoEdTech  4 роки тому

      I think there are development environments that work on phones and tablets, but I'm not sure what they are called. Check Google.

    • @goodtechnation3075
      @goodtechnation3075 4 роки тому +1

      Mimo

    • @MarkCrowtherTheTester
      @MarkCrowtherTheTester 3 роки тому

      SoloLearn has a mobile app

    • @TokyoEdTech
      @TokyoEdTech  3 роки тому

      @@MarkCrowtherTheTester Thanks for the recommendation!