Python_Institute
PCPP-32-101 · Question #22
Look at the following code snippets and decide which ones follow PEP 8 recommendations for whitespaces in expressions and statements. (Choose two.)
Sign in or unlock PCPP-32-101 to reveal the answer and full explanation for question #22. The question stem and answer options stay visible for context.
PEP and Best Practices
Question
Look at the following code snippets and decide which ones follow PEP 8 recommendations for whitespaces in expressions and statements. (Choose two.)
Exhibits
Options
- ANo whitespace immediately before the opening parenthesis that starts the list of arguments of a
- BA whitespace immediately before a comma, semicolon, and colon
- CNo whitespace between a trailing comma and a following closing parenthesis
- DA whitespace immediately after the opening parenthesis that starts indexing or slicing
Unlock PCPP-32-101 to see the answer
You've previewed enough free PCPP-32-101 questions. Unlock PCPP-32-101 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#PEP 8#whitespace rules#expressions#statements

