7 Python Tips and Tricks Everyone Should Know

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ย. 2024

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

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

    🔴 - If you enjoyed this video. Leave a like and subscribe :)

  • @farzadmf
    @farzadmf 2 ปีที่แล้ว +1

    Back with another nice video!
    Also, great to see Iran's name there 🙂

    • @iamrithmic
      @iamrithmic  2 ปีที่แล้ว +1

      Thank you! Had to include it ;)

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

    Thanks for sharing. But you don't get the power of match statement. or may be just your example doesn't show that - it just like the same code with little bit different syntax from c/c++. The real power is in structural unpacking and type checking like functional languages do. I suggest you to write a function that get a Coloe - tuple of 3 or 4 numbers - r,g,b and optional alpha channels. and this function should for example increase some channel if there is no alpha otherwise add alpha and print the color. and try to write such function with match-operator and without and compare the code.

  • @TheStevenWhiting
    @TheStevenWhiting 2 ปีที่แล้ว +1

    The Ternary Operators are an arse to read and not great for a beginner if they come across it.

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

      You have a valid point here. Even if you’re not a beginner, can be funny to read