Learn these 30 Functions | Python Tutorials | Most Used Python Functions Ep. 30

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

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

  • @ridwanray
    @ridwanray  8 หลายเดือนก่อน +2

    Support Me and The Channel:
    Don't forget to Like, Comment, and Subscribe.
    ► Recommended Books 📜
    Books: ridwanray.com/books
    - Python Crash Course: amzn.to/3vLYnP9
    - Python Tricks: amzn.to/48KvSA2
    - Automate the boring stuff : amzn.to/3SqJzhH
    - Clean Code: amzn.to/3vG5Te9
    - Clean Architecture: amzn.to/3vHu9wC
    ► Setups 💻
    Camera: Sony ZV-E10 amzn.to/4257Vkn
    Monitor: Sceptre 30-inch Curved Gaming amzn.to/491KeeP
    Monitor: Dell UltraSharp U2719D amzn.to/3OdA7LY
    Mic: Shure MV7 amzn.to/4b8i2J2
    🌐 Connect:
    Website: ridwanray.com
    LinkedIn: linkedin.com/in/ridwanray
    Github: github.com/ridwanray
    Articles:
    ridwanray.com/blog

    • @ridwanray
      @ridwanray  8 หลายเดือนก่อน +1

      Consider subscribing for more educational content.

  • @sanusiabubakr1948
    @sanusiabubakr1948 8 หลายเดือนก่อน +3

    Well explained and detailed

  • @plutosw7293
    @plutosw7293 8 หลายเดือนก่อน +2

    Thank you. You just helped me replace my nested for loops in my project 😆

    • @ridwanray
      @ridwanray  8 หลายเดือนก่อน +2

      I'm glad you find it helpful. Kindly consider subscribing and sharing so that we can reach a wider audience. Thanks

  • @nhbkitchen
    @nhbkitchen 8 หลายเดือนก่อน +2

    Very detailed. Thanks for sharing. ❤

    • @ridwanray
      @ridwanray  8 หลายเดือนก่อน +1

      I'm glad you enjoyed it.

  • @nhbkitchen
    @nhbkitchen 8 หลายเดือนก่อน +2

    Great Content!

    • @ridwanray
      @ridwanray  8 หลายเดือนก่อน +1

      Glad you enjoyed it

  • @sanusiabubakr1948
    @sanusiabubakr1948 8 หลายเดือนก่อน +2

    I have a question...
    Concerning the @property
    In a case where i need to populate the full name in the serializer for my Django project, i did source="user.fullname". It worked fine as a related field.
    Here comes my blocker:
    I decided to use full name to be part of filter fields.. i did "user__fullname" . I was getting error. I know the full name was a dynamic function annotated wjrb the @property and not really part of the user model fields.
    How do i find my way out of this ?

    • @ridwanray
      @ridwanray  8 หลายเดือนก่อน +2

      The filtering won't work with what you decorate with at property because
      1.it's a computed readonly attribute
      2. It's not part of the model field as specified in the error.
      Different ways to go about it depending on the requirements.
      Create a custom method for fullname Filtering. It takes the fullname and use annotation to filter against queries retrieved.

    • @sanusiabubakr1948
      @sanusiabubakr1948 8 หลายเดือนก่อน +1

      @@ridwanray Thanks chief

    • @ridwanray
      @ridwanray  8 หลายเดือนก่อน +1

      You're welcome.

  • @xyz5998
    @xyz5998 9 วันที่ผ่านมา +2

    I have a question we can just use
    mylist=[1,2,3,4]
    for i in range(mylist):
    Print (i)
    It will give the result why you use Rangeiterator class example it's little confusing..

    • @ridwanray
      @ridwanray  9 วันที่ผ่านมา +2

      I believe you intend to write:
      mylist=[1,2,3,4]
      for i in range(len(mylist)):
      print (i)
      This will return the indices. Try to run it.
      The key point here it to understand how iter() and next()

    • @xyz5998
      @xyz5998 9 วันที่ผ่านมา +2

      @@ridwanray ohhh thanks ☺️

    • @ridwanray
      @ridwanray  9 วันที่ผ่านมา +1

      You are welcome

  • @valenciawalker6498
    @valenciawalker6498 7 หลายเดือนก่อน +2

    Thank you

    • @ridwanray
      @ridwanray  7 หลายเดือนก่อน

      You are welcome.

  • @KeithKazamaFlick
    @KeithKazamaFlick 7 หลายเดือนก่อน +2

    good work

    • @ridwanray
      @ridwanray  7 หลายเดือนก่อน +1

      I'm glad you liked it.
      Thanks.