Lambda is honestly very useful. There was one time I was working on a project before I fully understood how lambda functions worked, and it was a couple hundred lines of code. Basically i was working with tkinter, and coding the functionality for some buttons. When you write commands for the buttons, typically you can't use parentheses, otherwise it won't work. I needed each button to send 2 values to a function. Essentially I had to create a bunch of functions, whose only purpose was to call sone other function with a value, though all these functions called tge same function to do the same thing, just with a different value. With lambda, I was able to get rid of almost 100 lines worth of redundant code.
@@Core-Electronics I'm definitely gonna be trying to use lambda expressions more often when applicable. But yeah so far fhe best use I've gotten for lambda is when you need to call a function that requires an input, but you can't use parentheses to give an input. It's just convenient in general to use lambda for a sort of one off function, rather than creating a function that only will serve one very specific, simple purpose.
I think I caught an error on your side. For example in a while like, when you replaced "break" with the "continue". You stated that it does the similar results of the "break", but it actually doesn't. I tested it. It loops it back through the while loop, I used Pycharm debut to test it out. Unless I am not seeing something else. Please clarify. thank you
Your right I had a slip up at 9.34. I said continue would do the same thing as break but this is not exactly what will happen. This is because the Continue keyword doesn't completely break the loop like the Break keyword would. The Continue keyword is used to end the current iteration in a loop, and continues to the next iteration. For this example it means nothing will be printed as | print(A) | is never reached and | A = A + 1 | is never reached. Because for every iteration A does not increase from -1 this code will create an endless loop. Thanks for providing me the opportunity to clarify, hopefully this helps you 🙂
Nice video. I watched it briefly before on my phone but the screen size was too small. I'm giving it a go again now that I discovered RUclips has a zoom feature.
Maybe you can answer my question sir, What computer language governs a programming language? For example what language told python not to use those keywords? Python or other programming languages can program or create a protocol, but they must be written syntactically ACCORDING TO "Something" which is I can never look up to RUclips tutorials. If you write a wrong syntax, computer will give an error, then who or WHAT tells you have error? Is python written in python?
Such an excellent question! To put it simply the Python Programming language was written using C Programming Language. So when a error is displayed in the Python IDLE shell it is because the C Programming Language determines there is one, stops the program and tells the computer to display that error message. C was used because at the time it was the most reliable and standardised lower level language. Then naturally the next question is what was the C programming language written in? And the easiest way to answer that is to say B Programming Language and then going a layer deeper B Programming Language was in turn written in Assembly language. Assembly language is a very low-level language which can be converted into machine code. At which point everything is written in binary code. A lot goes on when you press run on your scripts 😊.
I’m pretty young and am starting to get bored with my java course. Do you think i should switch to python or should I power through my course?(I have done 45 hours of the course and I think there is 80 hours)
Java is a very powerful programming language as well. A lot of skills learned in either becomes useful transferable knowledge. The biggest difference between the two is that Java is statically typed and Python is dynamically typed. If you had to exclusively go down one route it would be a tough choice but why not dive into both :)!
Yah good idea I was thinking the same. This most likely wouldn’t be good for a brand new programmer to learn both at same time but since I am above basic I think this will work
I wondering 1 question, Can i use any code editor program and not must be any specific program for just python, html, java, framework. Cause I like Visual studio and VSCODE or Notepad++
The 'is' keyword doesn't check if two things are equal, '==' does that. 'is' checks if two things are the same thing. a = 3, b = a is like one person holding up 3 fingers and the 2nd person is told to hold up how many fingers the first person is holding up, they are equal but not the same person.
As I knocked out this workshop the text got bigger and bigger. Condolences about the text size and head size in this one though. Hit up the full written up article for an easy to read page - core-electronics.com.au/guides/keywords-in-python/
Lambda is honestly very useful. There was one time I was working on a project before I fully understood how lambda functions worked, and it was a couple hundred lines of code. Basically i was working with tkinter, and coding the functionality for some buttons. When you write commands for the buttons, typically you can't use parentheses, otherwise it won't work. I needed each button to send 2 values to a function. Essentially I had to create a bunch of functions, whose only purpose was to call sone other function with a value, though all these functions called tge same function to do the same thing, just with a different value. With lambda, I was able to get rid of almost 100 lines worth of redundant code.
Pinned your comment 😊 I definitely slept on Lambda's Potential until recently too.
@@Core-Electronics I'm definitely gonna be trying to use lambda expressions more often when applicable. But yeah so far fhe best use I've gotten for lambda is when you need to call a function that requires an input, but you can't use parentheses to give an input. It's just convenient in general to use lambda for a sort of one off function, rather than creating a function that only will serve one very specific, simple purpose.
Great video. I honestly felt so lost in the world of code but this video helped me find my way.
Thanks, listened to this 3 times
You forgot to add "0:00" as your first item in your timestamp in the description. That's why they are not showing on the loading bar
Cheers for pointing that out mate 😊 all fixed now.
Job well done Tim.
thank you sir very much for this awesome video
I think I caught an error on your side. For example in a while like, when you replaced "break" with the "continue". You stated that it does the similar results of the "break", but it actually doesn't. I tested it. It loops it back through the while loop, I used Pycharm debut to test it out. Unless I am not seeing something else. Please clarify. thank you
Your right I had a slip up at 9.34. I said continue would do the same thing as break but this is not exactly what will happen. This is because the Continue keyword doesn't completely break the loop like the Break keyword would. The Continue keyword is used to end the current iteration in a loop, and continues to the next iteration. For this example it means nothing will be printed as | print(A) | is never reached and | A = A + 1 | is never reached. Because for every iteration A does not increase from -1 this code will create an endless loop.
Thanks for providing me the opportunity to clarify, hopefully this helps you 🙂
I use a mobile. I honestly want to see the codes
Code in later workshops are done in much larger and easier to read font. Also all the codes can be found in the article page if that helps.
Nice video. I watched it briefly before on my phone but the screen size was too small. I'm giving it a go again now that I discovered RUclips has a zoom feature.
This was great thank you
btw sorry for watching late but.... perfect video sir thanks for effort sir!!!!!!!!!!
Maybe you can answer my question sir, What computer language governs a programming language? For example what language told python not to use those keywords? Python or other programming languages can program or create a protocol, but they must be written syntactically ACCORDING TO "Something" which is I can never look up to RUclips tutorials. If you write a wrong syntax, computer will give an error, then who or WHAT tells you have error? Is python written in python?
Such an excellent question! To put it simply the Python Programming language was written using C Programming Language. So when a error is displayed in the Python IDLE shell it is because the C Programming Language determines there is one, stops the program and tells the computer to display that error message. C was used because at the time it was the most reliable and standardised lower level language.
Then naturally the next question is what was the C programming language written in? And the easiest way to answer that is to say B Programming Language and then going a layer deeper B Programming Language was in turn written in Assembly language. Assembly language is a very low-level language which can be converted into machine code. At which point everything is written in binary code. A lot goes on when you press run on your scripts 😊.
Very useful video, thanks for effort.
Cheers for the kind comment!
I’m pretty young and am starting to get bored with my java course. Do you think i should switch to python or should I power through my course?(I have done 45 hours of the course and I think there is 80 hours)
Java is a very powerful programming language as well. A lot of skills learned in either becomes useful transferable knowledge. The biggest difference between the two is that Java is statically typed and Python is dynamically typed. If you had to exclusively go down one route it would be a tough choice but why not dive into both :)!
Yah good idea I was thinking the same. This most likely wouldn’t be good for a brand new programmer to learn both at same time but since I am above basic I think this will work
I wondering 1 question, Can i use any code editor program and not must be any specific program for just python, html, java, framework. Cause I like Visual studio and VSCODE or Notepad++
good video tim
Thanks Spidey
amazing video, love time code for the words and url for sites. just brilliant and fast pace
Finally 😂👍🏼
u got that timothee chalamet jawline 👍
I'll be a stunt double, hit me up Tim 2!
what about assert
What about yield?
The 'is' keyword doesn't check if two things are equal, '==' does that. 'is' checks if two things are the same thing. a = 3, b = a is like one person holding up 3 fingers and the 2nd person is told to hold up how many fingers the first person is holding up, they are equal but not the same person.
Your right there are differences between == and is. This explains it the best dbader.org/blog/difference-between-is-and-equals-in-python
hes been mewing🤫🧏
I haven't watched the whole video yet but judging by the time stamps, I think you missed the 'with' keyword
are you also made in python 3? xD
nice jawline bro nice video too! 💀
Steve teaching us how to mod minecraft like dream.
“I don’t know what to do with my hands”
**sad yield noises**
You're*
This video was written with AI for sure lol
Better your face to be smaller and we be better able to read everything you write.
As I knocked out this workshop the text got bigger and bigger. Condolences about the text size and head size in this one though. Hit up the full written up article for an easy to read page - core-electronics.com.au/guides/keywords-in-python/
so cringe