Functions
Function names
|
Function names start with a lowercase letter. Most Python standards and frameworks state that function and method names should be in snake_case (all lowercase, words are separated with an underscore). In other programming languages, including PHP, camelCase (no spaces, second and subsequent words start with uppercase) is used for function and method names. In Python, the Here is an example of a function that does not take any parameters. Notice that there is nothing between the brackets after the function name. |