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!
@@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.
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.
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 .
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 👍
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.
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'!
"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
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
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"
@@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.
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?
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!
@@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?
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!
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?
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]
@@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.
@@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.
@@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.