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

B)

C)

D)

Suggested Answer: B, D
Get Premium PCPP-32-101 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
According to PEP 8 recommendations, the two best options areOption BandOption D.
29 comments · newest first
WA
Wade
1 year ago
D seems a bit too vague for my taste.
CE
Ceola
1 year ago
Wait, are we sure about C? Looks off to me.
LI
Lilli
1 year ago
I think B has some good points too.
RE
Remona
1 year ago
Totally agree, A is the best choice!
BE
Beatriz
1 year ago
Option A follows PEP 8 guidelines.
LO
Louann
1 year ago
I’m leaning towards option A and B, but I’m a bit confused about the specifics of docstring formatting.
CA
Cathrine
1 year ago
I practiced similar questions, and I think option D had the right structure, but I can't recall if it followed all the PEP 8 rules.
EZ
Ezekiel
1 year ago
I remember we discussed PEP 8 guidelines in class, and I feel like option C might be compliant, but I need to double-check.
SH
Sherman
1 year ago
I think option B looks good, but I'm not entirely sure about the formatting in option A.
IS
Isabelle
1 year ago
This looks like a straightforward question. I'll carefully read through the options and select the one that best matches the description of posting a new product photo online.
DA
Dallas
1 year ago
Hmm, I'm a bit unsure about this one. I'm debating between options B and D. I'll need to think it through carefully.
LU
Lucy
2 years ago
B and D for the win! Option A is like a doctoral thesis, and C is just a train wreck waiting to happen.
RO
Rory
1 year ago
Yeah, B and D are the way to go. A and C are just not up to par with PEP 8 standards.
MA
Man
1 year ago
Option A is just too wordy, and C is confusing. B and D are clear and to the point.
CI
Ciara
1 year ago
I agree, B and D are concise and follow PEP 8 guidelines. A and C are definitely not the best options.
QU
Queen
1 year ago
B and D are definitely the best choices. A is way too long and C is just a mess.
JA
Jacob
2 years ago
Definitely going with B and D. Option C is like a bad case of emoji diarrhea. Someone needs to teach that candidate about restraint.
JU
Jutta
2 years ago
User 2
JU
Justa
2 years ago
User 1
TE
Tenesha
2 years ago
Option A is a bit too wordy and doesn't follow the PEP 8 guidelines for docstrings. Option C is a mess - what's with all the emojis?
FE
Felix
2 years ago
I think we can all learn from Option B and D, they seem to be the best choices.
GO
Goldie
2 years ago
I agree, Option C with all the emojis is just confusing.
MI
Micaela
2 years ago
Option A is definitely too wordy and doesn't follow PEP 8.
CY
Cyril
2 years ago
Option B and D look the most compliant with PEP 8. The comments are clear and concise, and the formatting is consistent.
VA
Valene
2 years ago
User 2
IR
Irma
2 years ago
User 1
MA
Marylin
2 years ago
I believe Option B is also compliant because it provides useful comments and follows the PEP 8 guidelines.
CH
Cherry
2 years ago
I agree with you, Ricarda. Option A and Option C have clear and concise docstrings.
RI
Ricarda
2 years ago
I think option A and option C are compliant with PEP 8 recommendations.