













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














b) Removes leading and trailing whitespace from a string c) Removes all whitespace in the string d) Converts string to uppercase Answer: b Rationale: strip() removes only leading and trailing whitespace, not internal spaces.
Answer: b Rationale: Using *args allows the function to take a variable number of positional arguments.
c) dict = () d) dict = set() Answer: a Rationale: Curly braces {} are used to define dictionaries.
d) num("123") Answer: a Rationale: int() converts a numeric string to an integer.
Answer: a Rationale: y = x[:] creates a copy; modifying y does not affect x.
Answer: a Rationale: Sets automatically remove duplicate elements.