Skip to content

Commit

Permalink
Wiggle it, just a lil bit
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasser committed Oct 28, 2024
1 parent 50672ce commit ad2177c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clean-modular-code/activity-1/clean-code-activity-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Writing clean, modular code takes practice but is a habit worth building. Over t

In this exercise, you'll focus on using three key clean code strategies:

1. [**Use expressive names**](../python-expressive-code): Assign meaningful names to all variables and functions to make your code more readable.
1. [**Use expressive names**](python-expressive-code): Assign meaningful names to all variables and functions to make your code more readable.
2. [**Use a Python style guide (PEP8) for consistent syntax**](../python-pep-8): Adhere to PEP8 Python code style rules, including proper spacing and naming conventions, to maintain a consistent and readable codebase.
3. **Identify opportunities to [make your code DRY (Don't Repeat Yourself)](../python-dry-modular-code)**: In this activity, you will use pseudocode to identify areas where the code can be simplified and made DRY. In the next activity, you will implement DRY best practices using loops and functions.

Expand Down
2 changes: 1 addition & 1 deletion clean-modular-code/intro-clean-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jupyter:
Intro <self>
Python Code Style <python-pep-8>
Don't Repeat Yourself <python-dry-modular-code>
Expressive Code <python-expressive-code>
Expressive Code <python-write-expressive-code>
Write Pseudocode <write-pseudocode>
:::

Expand Down
2 changes: 1 addition & 1 deletion code-workflow-logic/write-python-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jupyter:

To define a function in Python, you need:
- The `def` keyword to start the function definition.
- A function name that follows [PEP 8 guidelines](../clean-modular-code/python-expressive-code.md) for naming.
- A function name that follows [PEP 8 guidelines](python-expressive-code) for naming.
- Input parameters (optional), defined inside parentheses `()`.
- A `return` statement that specifies the output of the function.
- A docstring that explains what the function does and defines the function's inputs and outputs. We suggest that you use numpy style docstrings for scientific Python code.
Expand Down

0 comments on commit ad2177c

Please sign in to comment.