Structural Pattern Matching in Python: Not Your Average Switch-Case

Поделиться
HTML-код
  • Опубликовано: 11 июл 2024
  • Today we learn about structural pattern matching in Python, a feature that was introduced in 3.10 and can be very useful.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    💼 Services 💼
    💻 Freelancing & Tutoring: www.neuralnine.com/services
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
  • НаукаНаука

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

  • @elatedbento
    @elatedbento 6 месяцев назад +10

    Not every channel needs to be about beginner stuff. I very much appreciate the content you produce. I always have an eye out for your notifications.
    That being said, thanks for another great video!
    I have a suggestion for your division f-string: replace it with f"{ x / y = }"
    You're welcome!

    • @thodorisevangelakos
      @thodorisevangelakos 6 месяцев назад +3

      Honestly, youtube is full of the same old same old. Seeing something new is so refreshing

  • @pascal831
    @pascal831 6 месяцев назад +2

    Awesome work as always brother!

  • @manishsinghparihar9006
    @manishsinghparihar9006 6 месяцев назад +2

    The command line usecase example was worth watching till the end.

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

    Thanks! I learned something new.

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

    Thank you for this very informative video

  • @inkuban
    @inkuban 6 месяцев назад +1

    Thanks! Thanks! Thanks!

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

    I hope you will never abandon your channel

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

    Unbelivebly useful feature

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

    great video

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

    This is acually mentally powerful, I have no idea how come this isn't more widely used. I'm learning Haskell at the moment and having this feature in Python makes data-driven programming infinitely more sensible and the algebraic type of programming way easier. I wonder if we can use this well with classes to make the sum types in Haskell/Rust in Python as well?

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

    I like your tutorials. How often do you post videos? Is it daily?

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

      Just subscribe 😊

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

    كيف الحصول على ApI ‏‪0:51‬‏ kye

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

    ⭕⭕⭕⭕🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑
    Make python flet "Keyboard".
    How to implement flet keyboard in any python flet billing software and how to make virtual keyboard for any device.
    Please tell me how we knows that which textfield is selected in flet app?
    Please make video on this.....

  • @kingfunny4821
    @kingfunny4821 6 месяцев назад +1

    If I have an application made in Python and a copy is given to a person in America and a copy is given to a person in Italy, how can I make the two people exchange messages with each other?
    Can you give information about this?

    • @plight5381
      @plight5381 6 месяцев назад +1

      You can try asking the people in question to exchange messages

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

      @@plight5381Lmfao

    • @vishnurajendran3574
      @vishnurajendran3574 3 месяца назад +1

      If you and your friend in Italy are not using a centralized server to exchange messages then you should share each other’s IP address and also do port forwarding on both sides
      You can also share a key and then encrypt the message while sending it , your friend can decrypt the message on his side , by this way you can also send messages through an encrypted channel in the internet

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

    Thank you. Please, make some zig programing language tutorial videos

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

    And no.... normal language will never be replaced by programming... are you kidding???? World Leaders and Washington will laugh at this nonsense.

    • @gxost_off
      @gxost_off 6 месяцев назад +2

      I want to know what you are about... please...

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

    Fyi.... when you try and teach Python, it's similar to me teaching you advaced masteirlals without a foudatinon on basic crystallography, or kinetics or thermodynamics... it's ridiculous. It's not even about being smart, it's about having your damnd foundations.

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

      Is that really necessary...? Good to know, but you can live and die as a software engineer of Python without knowing it at all......

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

    Your book is very vauge..... not for beginner programmers at all. No examples and you skip a ton of stuff.... you forget that not everything is about programming... there is also semiconductors, etching, mosfets, pdv, cvd manufacturing... what also made 80% Silicon Valley.

    • @alta1357
      @alta1357 6 месяцев назад +5

      Why would you buy a book on programming, and expect to see non-programming related things?

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

      Bro💀

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

    ⭕⭕⭕⭕🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑
    Make python flet "Keyboard".
    How to implement flet keyboard in any python flet billing software and how to make virtual keyboard for any device.
    Please tell me how we knows that which textfield is selected in flet app?
    Please make video on this.....

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

    ⭕⭕⭕⭕🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑
    Make python flet "Keyboard".
    How to implement flet keyboard in any python flet billing software and how to make virtual keyboard for any device.
    Please tell me how we knows that which textfield is selected in flet app?
    Please make video on this.....

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

    ⭕⭕⭕⭕🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑
    Make python flet "Keyboard".
    How to implement flet keyboard in any python flet billing software and how to make virtual keyboard for any device.
    Please tell me how we knows that which textfield is selected in flet app?
    Please make video on this.....