1
Variables are containers used to store values in Python, such as numbers (integers/floats) or strings, without needing explicit type declarations.
2
The assignment operator (=) is used to assign values to variable names. Using an undefined variable raises a NameError.
3
The underscore (_) character represents the output of the immediately preceding operation.
4
Strings in Python are collections of characters where indexing starts at 0 for the first character from the left.
5
Negative indices (e.g., -1) allow accessing characters in reverse order, starting from the end of the string.
6
String slicing allows extracting portions of a string using a start and end index (e.g., string[start:end]), where the end index is exclusive.
7
Strings in Python are immutable, meaning individual characters or subsections cannot be modified in place after creation.
8
The built-in len() function is used to determine the total number of characters in a string.