According to the PEP 8 coding style guidelines, how should constant values be named in Python?

Advertisement

  • in camel case without using underscores to separate words — e.g. maxValue = 255
  • in lowercase with underscores to separate words — e.g. max_value = 255
  • in all caps with underscores separating words — e.g. MAX_VALUE = 255
  • in mixed case without using underscores to separate words — e.g. MaxValue = 255
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend