Match case statements in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ค. 2023
  • This video covers an alternative to the if statement: The match case. A powerful tool to control the flow of code.

ความคิดเห็น • 10

  • @MrArecius
    @MrArecius 6 หลายเดือนก่อน

    Thank you for your awesome videos.
    The quality of this is so high! I greatly appreciate your work!

  • @cccornel5965
    @cccornel5965 3 หลายเดือนก่อน

    I like these videos

  • @mking1982098
    @mking1982098 10 หลายเดือนก่อน +1

    It's only real advantage over if/elif is readability due to the nesting. Though it may be better performance wise as well I've never tested.

  • @stark_kun
    @stark_kun ปีที่แล้ว

    it's very useful when you're creating a menu in pygame

  • @SougataPaul-pp5wp
    @SougataPaul-pp5wp 2 หลายเดือนก่อน

    so much clean , what is code compiler?

  • @ranjanadissanayaka5390
    @ranjanadissanayaka5390 9 หลายเดือนก่อน

    I got one more python wepon..thanks sir.

  • @user-hd5we9uh5d
    @user-hd5we9uh5d ปีที่แล้ว

    Keep being amazing

  • @user-hd5we9uh5d
    @user-hd5we9uh5d ปีที่แล้ว

    I would love to be always your the first viewer

  • @linuxeducation4058
    @linuxeducation4058 ปีที่แล้ว

    I think this is unnecessary. I used case in Bash. Python is simple and clear, and this is a very good approach. If is enough.

    • @linuxeducation4058
      @linuxeducation4058 ปีที่แล้ว

      BTW. Atlas, please give us good examples of design patterns for GUI, other technologies.