1/25
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Lexical Analysis
Reading the source code character from left to right & organizing them into tokens also known as regular expressions.
Lexical Analyzer
collects characters into logical groupings.
Tokens
Words or symbols in a sentence, which can include keywords, variables, and numbers.
Lexemes
A sequence of characters matched by a pattern to form a token.
Syntax Analysis/Parsing
The process of analyzing a string of symbols according to the rules of formal grammar.
Camel Case
A naming convention where all words of a multiple-word name except the first are capitalized (example: myFirstCode).
Snake Case
A naming convention where words are written in lowercase and separated by underscores (example: monthlysalarypay).
Pascal Case
A naming convention where each word starts with a capital letter (example: PythonClass).
Function Naming Convention
Use lowercase words and separate them by underscores, known as snake case. (function, pyt_function)
Variable Naming Convention
Use lowercase single letters, words, or words separated by underscores for readability. (z, var, pyt_variable)
Class Naming Convention
Start each word with a capital letter without separating words with underscores, known as Pascal case. (Model, PythonClass)
Method Naming Convention
Use lowercase words separated by underscores, known as snake case. (class_method, method)
Constant Naming Convention
Use uppercase single letters, words, or words separated by underscores. (CONSTANT, PYTH_CONSTANT, PYTHON_LONG_CONSTANT)
Module Naming Convention
Use a short, lowercase word or words separated by underscores to improve readability.(module.py, python_module. py)
Package Naming Convention
Use a short, lowercase word or words. Do not separate words with underscores. (package, pythonpackage)
Binding
An association between an attribute and an entity, occurring when a value is assigned to a variable.
Binding Time
The time at which a binding takes place.
Type Bindings
Variables must be bound to a data type before being referenced in a program.
Explicit Declaration
A statement that lists variable names and specifies their particular type.
Implicit Declaration
Associating variables with types through default conventions rather than explicit statements.
Dynamic Type Binding
Occurs when the variable type is not specified by a declaration statement.
Scope
The range of statements wherein a variable is visible.
Global Scope
Variables declared in the global scope are accessible from anywhere in the program.
Local Scope
Variables declared inside a function or block are local and can only be accessed within that function.
Enclosing Scope
The scope of a function that encloses another function.
Built-in Scope
Contains all the functions and variables that are built into Python.