Python Workshop - All The Keywords

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 46

  • @64imma
    @64imma Год назад +9

    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
      @Core-Electronics  Год назад +1

      Pinned your comment 😊 I definitely slept on Lambda's Potential until recently too.

    • @64imma
      @64imma Год назад +1

      @@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.

  • @dustinteders9939
    @dustinteders9939 Год назад +5

    Great video. I honestly felt so lost in the world of code but this video helped me find my way.

  • @underconstruction6432
    @underconstruction6432 3 года назад +5

    Thanks, listened to this 3 times

  • @Ky-vv8nj
    @Ky-vv8nj Год назад +4

    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

    • @Core-Electronics
      @Core-Electronics  Год назад +3

      Cheers for pointing that out mate 😊 all fixed now.

  • @magotelecom
    @magotelecom 2 года назад +1

    Job well done Tim.

  • @dinhomhm
    @dinhomhm 3 года назад +2

    thank you sir very much for this awesome video

  • @anthonykadir7140
    @anthonykadir7140 3 года назад +3

    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

    • @Core-Electronics
      @Core-Electronics  3 года назад +6

      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 🙂

  • @Ragusubedi
    @Ragusubedi 3 года назад +3

    I use a mobile. I honestly want to see the codes

    • @Core-Electronics
      @Core-Electronics  3 года назад

      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.

  • @davidsewilliams
    @davidsewilliams Год назад +1

    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.

  • @djcontact6444
    @djcontact6444 3 года назад +2

    This was great thank you

  • @LakshayKumar-ih1hz
    @LakshayKumar-ih1hz 5 месяцев назад

    btw sorry for watching late but.... perfect video sir thanks for effort sir!!!!!!!!!!

  • @junvelasco7812
    @junvelasco7812 3 года назад +2

    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?

    • @Core-Electronics
      @Core-Electronics  3 года назад +6

      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 😊.

  • @redengineer1753
    @redengineer1753 Год назад +1

    Very useful video, thanks for effort.

  • @shovelslayer4779
    @shovelslayer4779 4 года назад +2

    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)

    • @Core-Electronics
      @Core-Electronics  4 года назад +1

      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 :)!

    • @shovelslayer4779
      @shovelslayer4779 4 года назад

      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

  • @animal1853
    @animal1853 4 месяца назад

    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++

  • @PeterParker-si8uq
    @PeterParker-si8uq 2 года назад +1

    good video tim

  • @mccarraa
    @mccarraa 3 года назад +7

    amazing video, love time code for the words and url for sites. just brilliant and fast pace

  • @xerxescraft9734
    @xerxescraft9734 3 года назад +1

    Finally 😂👍🏼

  • @awesomefacts101
    @awesomefacts101 Год назад +1

    u got that timothee chalamet jawline 👍

  • @sebgrootus
    @sebgrootus 3 года назад +1

    what about assert

  • @MS-sv1tr
    @MS-sv1tr 5 месяцев назад

    What about yield?

  • @Stringbats
    @Stringbats 3 года назад

    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.

    • @Core-Electronics
      @Core-Electronics  3 года назад

      Your right there are differences between == and is. This explains it the best dbader.org/blog/difference-between-is-and-equals-in-python

  • @brazilberry1554
    @brazilberry1554 5 месяцев назад +1

    hes been mewing🤫🧏

  • @brucemurdock5358
    @brucemurdock5358 3 года назад

    I haven't watched the whole video yet but judging by the time stamps, I think you missed the 'with' keyword

  • @serious6037
    @serious6037 3 года назад +1

    are you also made in python 3? xD

  • @H4N5_83N
    @H4N5_83N 11 месяцев назад

    nice jawline bro nice video too! 💀

  • @josephjoe5762
    @josephjoe5762 2 года назад +1

    Steve teaching us how to mod minecraft like dream.

  • @tavishbrennan.
    @tavishbrennan. 6 месяцев назад

    “I don’t know what to do with my hands”

  • @shauryagupta3644
    @shauryagupta3644 6 месяцев назад

    **sad yield noises**

  • @suncoastwiffle
    @suncoastwiffle 2 года назад

    You're*

  • @anarch1984
    @anarch1984 Год назад

    This video was written with AI for sure lol

  • @montandocubomagico7337
    @montandocubomagico7337 Год назад +1

    Better your face to be smaller and we be better able to read everything you write.

    • @Core-Electronics
      @Core-Electronics  Год назад +1

      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/

  • @Jaxolottlfn
    @Jaxolottlfn Год назад

    so cringe