Python's Structural Pattern Matching

Поделиться
HTML-код
  • Опубликовано: 17 дек 2022
  • Python 3.10 introduced a new language construct called "structural pattern matching". If you are familiar with the "switch" statement found in some other programming languages, then this is Python's equivalent to that - but with more features!
    #mathbyteacademy #python #pythontips
    Code for this Video
    ================
    Available in GitHub blog repo: github.com/fbaptiste/python-blog
    Direct link: tinyurl.com/yzakb2dy
    My Python Courses
    =================
    - Python 3 Fundamentals (introduction to Python)
    www.udemy.com/course/python3-...
    - Python 3 Deep Dive (Part 1 - Functional)
    www.udemy.com/course/python-3...
    - Python 3 Deep Dive (Part 2 - Iteration, Generators)
    www.udemy.com/course/python-3...
    - Python 3 Deep Dive (Part 3 - Hash Maps)
    www.udemy.com/course/python-3...
    - Python 3 Deep Dive (Part 4 - OOP)
    www.udemy.com/course/python-3...

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

  • @AlexanderDemin
    @AlexanderDemin Год назад +7

    I just cannot forget your invaluable four parts python course where you were digging so deep, that your material simply blew out of the water all “similar” tutorials.

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

    Great explanation as always

  • @md.redwanhossain8822
    @md.redwanhossain8822 Год назад +6

    Hey Fred, I bought all your courses in udemy. Can you bring another course on threading, asynchronous programming, multiprocessing, and design pattern? It will be very helpful for us.

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

    Thank you sir 🙏

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

    Great video. Could you carry on with another instalment on pattern matching and expand on “object-like ()” syntax and also using the dot (“.”) dereferencing syntax in the case to avoid matching by type?

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

    thanks. when will you come up with a complete python rest API course on udemy?

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

    I did not even know that this thing existed in python

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

    Hey Fred. Great content as always! May I suggest that you zoom into your screen a little more, while recording your session? On a small phone it’s almost impossible to read..

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

    As strange it may sound, but actually pattern matching is THE LEAST understood new stuff added to python recently. We need to fix this “misunderstanding” :-)

  • @nitinkapoor4752
    @nitinkapoor4752 9 месяцев назад

    Oh NO…… NO ‘COBOL’ 😭😭😭
    (Returning to coding and now picking up Python…. Professionally coded COBOL 25 years back🤣🤣…still the best thing COBOL/DB2/CICS ..along with TSQ/TDQ ..messaging system of the IBM mainframe )

    • @mathbyteacademy
      @mathbyteacademy  9 месяцев назад +1

      Hehe, I remember COBOL from my first job... 😀

    • @mathbyteacademy
      @mathbyteacademy  8 месяцев назад +1

      Thinking back even more, I think we used Tuxedo for message queues (was a Tandem mainframe). And NonstopSQL for the DB. Fun times!

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

    Please have your code zoomed it. Its pretty hard to see on mobile phones 😢