Python Revision Notes
1. Basics of Python
-
High-level, interpreted, object-oriented, general-purpose language.
-
Easy syntax, dynamically typed (no need to declare variable type).
-
Uses indentation instead of braces {}.
High-level, interpreted, object-oriented, general-purpose language.
Easy syntax, dynamically typed (no need to declare variable type).
Uses indentation instead of braces {}.
2. Lexical Units
-
Keywords: Reserved words (e.g., if, while, class, True, False).
-
Identifiers: Names given to variables, functions, etc.
-
Literals: Constant values (e.g., 10, 3.14, "hello", True).
-
Operators: Symbols for operations (+, -, *, /, %, ==, and, or).
-
Delimiters: Brackets, colon, comma, etc.
Keywords: Reserved words (e.g., if, while, class, True, False).
Identifiers: Names given to variables, functions, etc.
Literals: Constant values (e.g., 10, 3.14, "hello", True).
Operators: Symbols for operations (+, -, *, /, %, ==, and, or).
Delimiters: Brackets, colon, comma, etc.
Comments
Post a Comment