Top 5 Tips and Tricks to Write Better Python Code!

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 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 😉

  • @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!

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

  • @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!

    • @lemastertech
      @lemastertech  2 ปีที่แล้ว

      Ainda bem que você gostou!