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
1 months 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
Ciara
9 days ago
I agree, B and D are concise and follow PEP 8 guidelines. A and C are definitely not the best options.
upvoted 0 times
...
Queen
17 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
1 months 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
1 months ago
User 2
upvoted 0 times
...
Justa
1 months ago
User 1
upvoted 0 times
...
...
Tenesha
2 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
24 days ago
I think we can all learn from Option B and D, they seem to be the best choices.
upvoted 0 times
...
Goldie
1 months ago
I agree, Option C with all the emojis is just confusing.
upvoted 0 times
...
Micaela
1 months 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
1 months ago
User 2
upvoted 0 times
...
Irma
2 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77