Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

dusa
dusa

Posted on

Function naming rules in Python

1. Use of Lowercase Letters and Underline (Snake Case)
Function names are written in lowercase letters and an underscore (_) is placed between the words.

2. Meaningful and Descriptive Names
Function names should clearly state what the function does.

3. Verb Usage
Function names often begin with a verb to indicate an action.

4. Avoid Abbreviations
Don't use abbreviations unless it's a well-known term or technology.

Image description

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
jeffreyyang0213 profile image
Jeffrey
Software Engineer
  • Joined

Great. I especially agree with the last rule to avoid abbreviations.
We should go ahead using full word as well I think. Thanks.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I write short articles about everything I learn.
  • Pronouns
    dusa
  • Work
    Web Developer
  • Joined

More fromdusa

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp