Variable names must start with letter or underscore. Variable names can contain letters, numbers, and underscores. Variable names are case-sensitive. Hyphens in variable names are not allowed
Programming languages have specific rules for writing code. Syntax errors occur when rules are broken in Python. Errors help machines understand code better
Auto keyword automatically detects and assigns data types to variables. Compiler analyzes variable types based on initialization. Variables must be initialized when using auto keyword
Variables are hoisted to memory before execution starts. Var variables are initialized as undefined before execution. Let and const variables are initialized in temporal dead zone. Variables can be declared without value with let and var
DIM stands for "Dimension" or "Declare in Memory" in VBA. Used to declare variables in different data types like integer, Boolean, string. Excel automatically pre-types data types based on keyword usage
Var declarations were previously used before ES6. Var variables can be globally or function-scoped. Var variables can be re-declared and updated within their scope. Var variables are hoisted to top with undefined initialization. Var variables can be redefined when used multiple times