Top 5 Tips and Tricks to Write Better Python Code!

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

КОМЕНТАРІ • 16

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

    Another useful video presented in your usual easy going style, great job!

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

      Thanks Dale!! Something tells me you probably knew most of these already 😉

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

    Good tips, didn't know about the filter function.
    My first thought was a list comprehension:
    "myList = [1, 2, 3, 4, 5, 6, 7, 8, 9]"
    "oddList = [odd for odd in myList if odd % 3 == 0]"

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

      Thanks mate glad you liked it! That style of list comprehension would totally get the job done for sure! I think being able to craft more complex functions in a def and then apply the filter to them can have benefit too when the filters start getting too complex for one line! Thanks for watching friend!!

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

      @@lemastertech 😎🤝

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

      @@flioink

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

      Same insight

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

    this was really useful, thank you!

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

      You’re welcome! Glad you find it useful!! :)

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

    Great tips! Thank You bro

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

      You’re welcome! Glad you liked it, thanks for the nice comment!

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

    This is awesome!.
    Is it possible to use kivy textinput widget as console; when you enter input, the output should be displayed in the same textinput widget?.

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

      Hi - so I always use a label and a text input separately. I haven’t tried to change the text displayed inside a text input based on the input from somewhere else! It might be possible but I think a label text input combo is much easier!

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

      @@lemastertech Thanks man 😊, I really appreciate you.

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

    valeu!