Introduction

Published

2023-07-31

This chapter will introduce the concept of good Python style through the use of the PEP 8 style guide. We’ll further our understanding of constants, learn about the benefits of using comments, and how/when to use them effectively.

Learning objectives

  • You will learn about the importance of good Python style and the PEP 8 style guide.
  • You will learn conventions for naming constants.
  • You will learn about comments and docstrings in Python and their uses.

Terms introduced

  • camelCase
  • docstring
  • inline comment
  • PEP 8
  • single-line comment
  • snake_case

Original author: Clayton Cafiero < [given name] DOT [surname] AT uvm DOT edu >

No generative AI was used in producing this material. This was written the old-fashioned way.

This material is for free use under either the GNU Free Documentation License or the Creative Commons Attribution-ShareAlike 3.0 United States License (take your pick).