Automation, Orchestration, and Scripting

A Linux administrator is writing a Python script that checks disk health. A module-level value holding the number of SSH retry attempts is set once and never changed. Which line follows PEP 8 naming conventions for this value?

Show the answer

Correct answerB. MAX_RETRIES = 5

PEP 8 names constants in all capital letters with underscores separating words, so MAX_RETRIES is correct. Lowercase with underscores is the style for ordinary variables and functions, so it does not signal a constant.