Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute Exam PCPP-32-101 Topic 9 Question 10 Discussion

Actual exam question for Python Institute's PCPP-32-101 exam
Question #: 10
Topic #: 9
[All PCPP-32-101 Questions]

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)

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Lucy
16 days ago
B and D for the win! Option A is like a doctoral thesis, and C is just a train wreck waiting to happen.
upvoted 0 times
Queen
2 days ago
B and D are definitely the best choices. A is way too long and C is just a mess.
upvoted 0 times
...
...
Jacob
25 days 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.
upvoted 0 times
Jutta
15 days ago
User 2
upvoted 0 times
...
Justa
18 days ago
User 1
upvoted 0 times
...
...
Tenesha
1 months 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?
upvoted 0 times
Felix
9 days ago
I think we can all learn from Option B and D, they seem to be the best choices.
upvoted 0 times
...
Goldie
18 days ago
I agree, Option C with all the emojis is just confusing.
upvoted 0 times
...
Micaela
26 days ago
Option A is definitely too wordy and doesn't follow PEP 8.
upvoted 0 times
...
...
Cyril
2 months ago
Option B and D look the most compliant with PEP 8. The comments are clear and concise, and the formatting is consistent.
upvoted 0 times
Valene
29 days ago
User 2
upvoted 0 times
...
Irma
1 months ago
User 1
upvoted 0 times
...
...
Marylin
2 months ago
I believe Option B is also compliant because it provides useful comments and follows the PEP 8 guidelines.
upvoted 0 times
...
Cherry
2 months ago
I agree with you, Ricarda. Option A and Option C have clear and concise docstrings.
upvoted 0 times
...
Ricarda
2 months ago
I think option A and option C are compliant with PEP 8 recommendations.
upvoted 0 times
...

Save Cancel