Python Institute PCPP1 – Certified Professional in Python Programming 1 PCPP-32-101 Question # 9 Topic 1 Discussion

Python Institute PCPP1 – Certified Professional in Python Programming 1 PCPP-32-101 Question # 9 Topic 1 Discussion

PCPP-32-101 Exam Topic 1 Question 9 Discussion:
Question #: 9
Topic #: 1

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:

PCPP-32-101 Question 9

B)

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

PCPP-32-101 Question 9

C)

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

PCPP-32-101 Question 9

D)

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

PCPP-32-101 Question 9


A.

Option A


B.

Option B


C.

Option C


D.

Option D


Get Premium PCPP-32-101 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.