1/9
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
name
is a string of characters used to identify some entity in a program
camel
It is called _____ as words written as names often have embedded uppercase letters, making it look like a camel’s hump
Function
Use lowercase words. Separate words by underscores to improve readability.
This is called a snake case
This is called a snake case.
Ex. function, pyt_function
Variable
Use a lowercase single letter, word, or words. Separate words with underscores (_) to improve readability.
Ex. z, var, pyt_variable
Class
Start each word with a capital letter. Do not separate words with underscores.
This is called a Pascal case*
Ex. Model, PythonClass
Method
Use lowercase words. Separate words with underscores to improve readability (snake case).
Ex. class_method, method
Constant
Use an uppercase single letter, word, or words. Separate words with underscores to improve readability
Ex. CONSTANT, PYTH_CONSTANT,
PYTHON_LONG_CONSTANT
Module
Use a short, lowercase word or words. Separate words with underscores to improve readability
Ex: module.py, python_module.py
Package
Use a short, lowercase word or words. Do not separate words with underscores.
Ex: package, pythonpackage
*Pascal case
_____ is a naming convention wherein each word starts with a capital letter