Python tricks: Writing user-friendly code with PEP-8 naming conventions

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2017
  • (For more, visit pythontutorials.eu !) In this video, I describe the PEP-8 style guideline for Python, with a specific focus on the naming conventions for variables, functions, and classes, which can make your code much easier to use for others. The Jupyter notebook is available here: osf.io/xy8kh/

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

  • @AliParlakci
    @AliParlakci 6 ปีที่แล้ว +8

    Keep up the good work! Those are the most exciting Python tutorials out there.

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

    Never thought I would find a python video explained with tango artists, loved the video mate. Greetings from Argentina.

  • @m.t-thoughts8919
    @m.t-thoughts8919 4 ปีที่แล้ว +8

    Now I finally understood naming convenstions. I gona clean up my add on for Blender right know.🙏🏻

  • @cyrax5628
    @cyrax5628 6 ปีที่แล้ว +1

    Good stuff bro! I'll be putting all of it in practice

  • @Kqto
    @Kqto 6 ปีที่แล้ว

    Thanks for this video, it's really interesting. I'll adopt it and I think I will also read the whole pep8 documentation.

  • @avinashgaurav3478
    @avinashgaurav3478 3 ปีที่แล้ว

    Awesome Tutorial. Keep up the good work!!! Its indeed helpful. Thanks

  • @aliakseishchebetau758
    @aliakseishchebetau758 6 ปีที่แล้ว +3

    thanks! like this style of code

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

    Ty, good quality presentation :)

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

    Awsome tutorial!

  • @L0NDONER
    @L0NDONER 4 ปีที่แล้ว

    Thank you for your help in explaining this :)

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

    Thanks for such useful explanation!

  • @sudharsan4040
    @sudharsan4040 5 ปีที่แล้ว +1

    Awesome tutorial 👌

  • @elfulano9110
    @elfulano9110 5 ปีที่แล้ว

    Great video. Well explained.

  • @lgbonfim
    @lgbonfim 3 ปีที่แล้ว

    Thank you! Very useful!

  • @enesozdemir9973
    @enesozdemir9973 4 ปีที่แล้ว

    great work!

  • @rhalaal
    @rhalaal 6 ปีที่แล้ว +1

    Thanks merci, good video!

  • @MohamedAyman-li6rp
    @MohamedAyman-li6rp 6 ปีที่แล้ว

    Thank you!

  • @markomarinak6766
    @markomarinak6766 6 ปีที่แล้ว +2

    thanks for help ;-)

  • @pratikshirbhate8026
    @pratikshirbhate8026 5 ปีที่แล้ว

    Thanks!!

  • @o.sunsfamily
    @o.sunsfamily 4 ปีที่แล้ว

    Could you change the language for caption auto generation?

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

    Why PySide6 doesn't adhere to PEP 8 rules

  • @Factory400
    @Factory400 3 ปีที่แล้ว +3

    I am not PEP8 compliant and feel like the Python S.W.A.T. team is going to bust through my windows at any time.
    Time to step up my coding.

    •  3 ปีที่แล้ว

      Some of my main projects use tab-based indentation, and I have recurring nightmares about that

    • @guyguy7714
      @guyguy7714 3 ปีที่แล้ว

      @ the fuck you tryin to say

  • @dddd-ci2zm
    @dddd-ci2zm ปีที่แล้ว

    Nice, I thought I knew this but I ws not naming Classes properly

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

    Can you talk a little bit about autopep8?

  • @stalfas
    @stalfas 5 ปีที่แล้ว

    which is the song used??

    •  5 ปีที่แล้ว +1

      Thanks for asking. It's a fragment from an unreleased song that I made ages ago!

  • @EverydayButSunday
    @EverydayButSunday 6 ปีที่แล้ว +5

    You said Python has no constants. Is a tuple not considered a constant?

    •  6 ปีที่แล้ว +9

      +Everyday But Sunday that's a good question. But no, a tuple is not a constant. A tuple is an immutable object, meaning that you cannot change the object itself. But one variable name (symbol) can refer to different tuples at different moments. A constant is something more: it is a variable name that always refers to the same immutable object.

    •  6 ปีที่แล้ว +4

      +Everyday But Sunday that's a good question. But no, a tuple is not a constant. A tuple is an immutable object, meaning that you cannot change the object itself. But one variable name (symbol) can refer to different tuples at different moments. A constant is something more: it is a variable name that always refers to the same immutable object.

    • @EverydayButSunday
      @EverydayButSunday 6 ปีที่แล้ว +2

      Gotcha'. Thanks for the video and the reply. You are the only one I could find who just did the basics of PEP8.

  • @shaikkhadervali375
    @shaikkhadervali375 3 ปีที่แล้ว

    I loved this video, but, one thing haunts me. WTF IS ASTRO PIAZOLLA !!!! 😂😂😂