Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam PCPP-32-101 All Questions

View all questions & answers for the PCPP-32-101 exam

Exam PCPP-32-101 topic 1 question 16 discussion

Actual exam question from Python Institute's PCPP-32-101
Question #: 16
Topic #: 1
[All PCPP-32-101 Questions]

Which of the following examples using line breaks and different indentation methods are compliant with PEP 8 recommendations? (Choose two.)

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
w_w_w_w_w_w
1 year, 4 months ago
Selected Answer: AC
A: The first example in (https://peps.python.org/pep-0008/#indentation). Vertical alignment with the opening delimiter C: Correct, the closing braces/bracket/parenthesis on multiline constructs may either line up under the first non-whitepace character of the last line of the list or may be lined up under the first character of the line that starts the multiline construct. D is wrong, since there is no indenting used.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...