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
...
Log in to ExamTopics
Sign in:
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.
w_w_w_w_w_w
1 year, 4 months ago