Тёмный
No video :(

Simple Calculator App Tutorial in Python for Beginners 

TokyoEdtech
Подписаться 47 тыс.
Просмотров 30 тыс.
50% 1

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 201   
@clowndoglen
@clowndoglen 3 года назад
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 года назад
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'!
@bruhifyify5713
@bruhifyify5713 3 года назад
the timing is perfect, i was having trouble making a calculator earlier
@TokyoEdTech
@TokyoEdTech 3 года назад
Glad to hear it!
@bruhifyify5713
@bruhifyify5713 3 года назад
@@TokyoEdTech i have a question, is it a good idea to learn java after python?
@TokyoEdTech
@TokyoEdTech 3 года назад
@@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 3 года назад
​@@TokyoEdTech ok, thank you so much!
@creativeshooter428
@creativeshooter428 3 года назад
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 3 года назад
You're welcome - I can't do all requests, but this one was a natural follow-up to my last video.
@creativeshooter428
@creativeshooter428 3 года назад
@@TokyoEdTech OK😄
@tachitos6022
@tachitos6022 3 года назад
Using this to code in a calculus calculator. Not really to make a project but to reinforce what I learned in my calculus courses
@TokyoEdTech
@TokyoEdTech 3 года назад
That's a great way to learn!
@AlexSmith-rl6lb
@AlexSmith-rl6lb 3 года назад
U did a really great job...KEEP ON IT
@TokyoEdTech
@TokyoEdTech 3 года назад
Thanks!
@ibgm9317
@ibgm9317 3 года назад
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!
@alexandersequeira1281
@alexandersequeira1281 3 года назад
As soon as you said you will be back, an add played. Perfect timing lol.
@TokyoEdTech
@TokyoEdTech 3 года назад
That RU-vid algorithm knows its stuff!
@rohan1096
@rohan1096 3 года назад
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.
@petertipping8044
@petertipping8044 3 года назад
Loving these tkinter tutorials! Keep up the great work!
@TokyoEdTech
@TokyoEdTech 3 года назад
Thanks!
@javo5270
@javo5270 3 года назад
I fucking love this channel, am learning so much with these videos, thanks and hats off to you mate
@TokyoEdTech
@TokyoEdTech 3 года назад
Thanks! Much appreciated.
@jazzymilk9996
@jazzymilk9996 3 года назад
IVE BEEN WAITING FOR THIS! Oh and I’m learning Japanese I’m been learning for about a month just thought I would share! ども
@TokyoEdTech
@TokyoEdTech 3 года назад
Dou itashimashite!
@nitishsharma8251
@nitishsharma8251 3 года назад
Thank you.....it was really helpful....and going slowly helped me understand better
@TokyoEdTech
@TokyoEdTech 3 года назад
Glad to hear it!
@amongus_pvp
@amongus_pvp 3 года назад
TYSM my first working python project
@TokyoEdTech
@TokyoEdTech 3 года назад
You are welcome!
@artix7174
@artix7174 2 года назад
pov: hecker learns to heck
@teacherinthailan6441
@teacherinthailan6441 3 года назад
Excellent! Thank you so much!
@TokyoEdTech
@TokyoEdTech 3 года назад
You're very welcome!
@paradox9879
@paradox9879 3 года назад
First ❤️❤️
@TokyoEdTech
@TokyoEdTech 3 года назад
Gold!
@paradox9879
@paradox9879 3 года назад
@@TokyoEdTech thanks you
@mateaandmilos
@mateaandmilos 3 года назад
tkinter looks super easy to start learning :)
@TokyoEdTech
@TokyoEdTech 3 года назад
It is!
@Shenal_Nimsara
@Shenal_Nimsara 3 года назад
You are a real coder.best work
@TokyoEdTech
@TokyoEdTech 3 года назад
Thanks!
@Shenal_Nimsara
@Shenal_Nimsara 3 года назад
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 года назад
Thanks - back at you!
@Shenal_Nimsara
@Shenal_Nimsara 3 года назад
can you give me the codes of calculator please?
@panavsaxena7345
@panavsaxena7345 3 года назад
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 года назад
"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 года назад
In this case it allows us to pass parameters to the function - otherwise we can only call functions without parameters with tkinter.
@israelpadonu5351
@israelpadonu5351 3 года назад
I added a delete button to delete a number if I made a mistake
@TokyoEdTech
@TokyoEdTech 3 года назад
Cool!
@Aarush_2008
@Aarush_2008 3 года назад
THX FOR THIS GREAT TUTORIAL
@TokyoEdTech
@TokyoEdTech 3 года назад
You're welcome!
@muhammadkabir6596
@muhammadkabir6596 3 года назад
This is really great was having problems earlier but with this am satisfied
@TokyoEdTech
@TokyoEdTech 3 года назад
Good to hear!
@damnischannel
@damnischannel 2 года назад
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 года назад
I agree. As long as your code works, the it is ok!
@baneofcronus6979
@baneofcronus6979 3 года назад
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 3 года назад
Interesting. Doesn't the try/except block catch that?
@baneofcronus6979
@baneofcronus6979 3 года назад
It does. The try except block throws up an error every time that happens.
@baneofcronus6979
@baneofcronus6979 3 года назад
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 3 года назад
@@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.
@MrKirshoff
@MrKirshoff 3 года назад
very clear and clean code! thank u so much.
@TokyoEdTech
@TokyoEdTech 3 года назад
You're welcome!
@spon._.
@spon._. 2 года назад
imagine using the calculator app so parents thought you are coding, but you cheated on math exam (thanks btw)
@TokyoEdTech
@TokyoEdTech 2 года назад
You are welcome!
@peterchaaya7863
@peterchaaya7863 3 года назад
did this coding works on python in vscodes ?
@TokyoEdTech
@TokyoEdTech 3 года назад
It should.
@ethansofiadada
@ethansofiadada 3 года назад
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 года назад
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 года назад
@@ethansofiadada Close! lol
@yashsapre1711
@yashsapre1711 Год назад
when I run it everything was okay but answer is not comming after pressing "=" button
@TokyoEdTech
@TokyoEdTech Год назад
Gotta share your code, otherwise I can't help you.
@guyincognito5614
@guyincognito5614 3 года назад
loving it
@TokyoEdTech
@TokyoEdTech 3 года назад
Thanks!
@jolualuko7802
@jolualuko7802 2 года назад
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!
@honeyd5550
@honeyd5550 Год назад
does this app follow order of oporation? Or just they way you enter it
@TokyoEdTech
@TokyoEdTech Год назад
It should follow order of operations.
@pablobarbozacanal
@pablobarbozacanal 3 года назад
thankyou brow! continue
@TokyoEdTech
@TokyoEdTech 3 года назад
You're welcome!
@simran9161
@simran9161 2 года назад
Thanku sooo much🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺💝💝💝
@TokyoEdTech
@TokyoEdTech 2 года назад
You are quite welcome!
@nawid1687
@nawid1687 3 года назад
I was waiting for this!!
@TokyoEdTech
@TokyoEdTech 3 года назад
Wait no more! :)
@nawid1687
@nawid1687 3 года назад
@@TokyoEdTech Thank you!
@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'!
@lotfibelabbas8411
@lotfibelabbas8411 3 года назад
i have a problem with the dot button File "", line 1 19.9+ 7 .5 ^ SyntaxError: invalid syntax i solved the problem
@TokyoEdTech
@TokyoEdTech 3 года назад
Good to hear!
@canadianbro9327
@canadianbro9327 3 года назад
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 3 года назад
You’re in luck - I’ve made a video about this exact topic. Enjoy! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4bL-lCP2tec.html
@nexgenofficial665
@nexgenofficial665 3 года назад
Brother, can you make app making series? With tkinter, It will be great!
@TokyoEdTech
@TokyoEdTech 3 года назад
Hiya - do you mean mobile apps? If so, as far as I know you cannot use tkinter for that purpose.
@nexgenofficial665
@nexgenofficial665 3 года назад
@@TokyoEdTech ohh! Then I have heard that kivy MD is a best platform for mobile apps?
@TokyoEdTech
@TokyoEdTech 3 года назад
@@nexgenofficial665 I've heard about Kivy for making apps in Python, but haven't tried it myself yet.
@nexgenofficial665
@nexgenofficial665 3 года назад
@@TokyoEdTech no problem. Thanks!
@yassinezanned8187
@yassinezanned8187 3 года назад
Thank you so much sir
@TokyoEdTech
@TokyoEdTech 3 года назад
Most welcome!
@xithcal8439
@xithcal8439 3 года назад
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 3 года назад
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 3 года назад
@@TokyoEdTech Thank you I'll try that
@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 года назад
Typically, you'd create a class such as Game and then run everything inside the Game class.
@bruhifyify5713
@bruhifyify5713 3 года назад
i have a question, whats the best IDE for python?
@TokyoEdTech
@TokyoEdTech 3 года назад
"Best' is a personal choice, but here's what I've used: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4bL-lCP2tec.html
@MarkCrowtherTheTester
@MarkCrowtherTheTester 3 года назад
Consider PyCharm
@TokyoEdTech
@TokyoEdTech 3 года назад
@@MarkCrowtherTheTester Probably not gonna happen, but if it works for you all good!
@newpheeraphat5495
@newpheeraphat5495 3 года назад
Thank you
@TokyoEdTech
@TokyoEdTech 3 года назад
You're welcome.
@BF2042Pro
@BF2042Pro 3 года назад
21:43 I keep getting an error for expression as “Undefined”
@BF2042Pro
@BF2042Pro 3 года назад
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.
@goodtechnation3075
@goodtechnation3075 3 года назад
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 3 года назад
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 3 года назад
@@TokyoEdTech I’m going to give it a shot
@goodtechnation3075
@goodtechnation3075 3 года назад
@@TokyoEdTech Done and thanks again! def delete(): If expression != “ “: expression = expression[0:len(expression)-1] label_result.config(text=expression)
@TokyoEdTech
@TokyoEdTech 3 года назад
@@goodtechnation3075 Awesome - thanks for sharing!!!!
@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 года назад
@@tentative_iv6398 I'm with you on that - function > design!
@superkb172
@superkb172 3 года назад
Great tutorial and do you plan to mix tk and turtle to create games?
@TokyoEdTech
@TokyoEdTech 3 года назад
Thanks. I wasn't planning on it although it is possible. The turtle module is built on top of tkinter.
@superkb172
@superkb172 3 года назад
@@TokyoEdTech cool! And have an amazing day
@superkb172
@superkb172 3 года назад
@@TokyoEdTech hello, could this be done in turtle or could the two tk and turtle mix? pastebin.com/W5v46fxD Oh pydroid 💯
@parthgupta4850
@parthgupta4850 3 года назад
Not first
@TokyoEdTech
@TokyoEdTech 3 года назад
Next time!
@ashwins4776
@ashwins4776 3 года назад
Best tutorial....
@TokyoEdTech
@TokyoEdTech 3 года назад
Thanks - glad you liked it!
@swastiksarkar
@swastiksarkar 3 года назад
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 3 года назад
It's automatically sized.
@swastiksarkar
@swastiksarkar 3 года назад
@@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 3 года назад
@@swastiksarkar It'll vary by system and font.
@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.
@red34x52
@red34x52 2 года назад
not sure how to pause this youtube:we got you 'ad starts playing'
@TokyoEdTech
@TokyoEdTech 2 года назад
RU-vid giveth when thou needeth!
@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.
@noobcraft5712
@noobcraft5712 3 года назад
You should make a gaming channel to play game's like among us, mincraft and all the other game's.
@TokyoEdTech
@TokyoEdTech 3 года назад
Thanks, but I am not a gamer. Also I prefer open source software so check out Minetest instead of Minecraft.
@noobcraft5712
@noobcraft5712 3 года назад
Ok
@noobcraft5712
@noobcraft5712 3 года назад
You don't need to be a Gamer to play game's.
@TokyoEdTech
@TokyoEdTech 3 года назад
True - but if you are going to start a RU-vid channel about gaming you should be interested in the topic and know something about it.
@Bronzenical
@Bronzenical 3 года назад
can u give ma a link for your phyton please
@TokyoEdTech
@TokyoEdTech 3 года назад
Check the description (Geany).
@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 года назад
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 года назад
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 года назад
You're welcome - keep on codin'!
@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.
@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?
@shaharyarahmed5777
@shaharyarahmed5777 3 года назад
what about space arena?
@TokyoEdTech
@TokyoEdTech 3 года назад
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!
@rrickyy
@rrickyy 2 года назад
nice
@TokyoEdTech
@TokyoEdTech 2 года назад
Thanks
@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.
@parthgupta4850
@parthgupta4850 3 года назад
But also not the last
@TokyoEdTech
@TokyoEdTech 3 года назад
:)
@awesome_pi_guy
@awesome_pi_guy 3 года назад
Could you make a algebra calculator
@TokyoEdTech
@TokyoEdTech 3 года назад
I'm not really sure how to go about that - what makes it different from a regular calculator?
@awesome_pi_guy
@awesome_pi_guy 3 года назад
@@TokyoEdTech It trys to solve for x
@TokyoEdTech
@TokyoEdTech 3 года назад
Oh..you're on your own on that one!
@awesome_pi_guy
@awesome_pi_guy 3 года назад
@@TokyoEdTech Ok
@kromydas5063
@kromydas5063 3 года назад
@@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.
@ashwins4776
@ashwins4776 3 года назад
I don't have computer , now how can i learn python?
@TokyoEdTech
@TokyoEdTech 3 года назад
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 3 года назад
Mimo
@MarkCrowtherTheTester
@MarkCrowtherTheTester 3 года назад
SoloLearn has a mobile app
@TokyoEdTech
@TokyoEdTech 3 года назад
@@MarkCrowtherTheTester Thanks for the recommendation!
Далее
Python tkinter Tutorial: Simple To Do List App
35:23
Просмотров 35 тыс.
Simple GUI Calculator in Python
22:51
Просмотров 264 тыс.
Python calculator app 🖩
15:08
Просмотров 74 тыс.
Top 18 Most Useful Python Modules
10:50
Просмотров 928 тыс.
Code Snake Game in Python
35:34
Просмотров 24 тыс.
Let's code a SNAKE GAME in python! 🐍
33:06
Просмотров 602 тыс.
Using AI to Create the Perfect Keyboard
12:05
Просмотров 1,4 млн