Python Institute Related Exams
PCPP-32-101 Exam
Look at the following code snippets and decide which ones follow PEP 8 recommendations for whitespacesin expressions and statements(Select two answers.)
A)
No whitespace immediately before the opening parenthesis that starts the list of arguments of a function call:

B)
A whitespace immediately before a comma,semicolon, and colon:

C)
No whitespace between a trailing comma and a following closing parenthesis:

D)
A whitespace immediately after the opening parenthesis that starts indexing or slicing:

Look at the following examples of comments and docstrings in PythonSelect the ones that are useful and compliant with PEP 8 recommendations (Select the two best answers.)
A)

B)

C)

D)
