The max() function returns the largest element in the list, which is 9.
Variable names can contain letters, digits, and underscores, but cannot start with a digit or contain hyphens or spaces.
abs(-5) = 5 and abs(3) = 3. Therefore, 5 + 3 = 8.
Empty curly braces {} create an empty dictionary, not a set. To create an empty set, use set().
x and y are separate variables. Assigning y = 10 doesn't change x, which remains 5.
The + operator concatenates strings in Python. Other operators don't perform string concatenation.
The len() function counts all characters including the space. 'hello world' has 11 characters (including 1 space).
Tuples are immutable, meaning their elements cannot be changed after creation. Lists, dictionaries, and sets are mutable.
The floor division operator (//) returns the quotient rounded down to the nearest integer. 10 // 3 = 3.
String slicing [2:5] extracts characters from index 2 to 4 (5 is exclusive). 'Python'[2:5] = 'yth'.