Skip to content

Commit

Permalink
fix few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Jan 5, 2025
1 parent 328cefd commit 45f2387
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions content/good-practices.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Good practices and tools

:::{objectives}
- How does good Python code look like? And if you had only 30 minutes, what would you mention?
- Some of the points are insprired by the excellent [Effective Python](https://effectivepython.com/) book by Brett Slatkin.
- How does good Python code look like? And if we only had 30 minutes, which
- good practices should we highlight?
- Some of the points are inspired by the excellent [Effective Python](https://effectivepython.com/) book by Brett Slatkin.
:::


Expand Down Expand Up @@ -590,7 +591,7 @@ Dataclasses are often a good alternative to regular classes:

- Difficult to name a function or file? It might be doing too much or unrelated things.

- If your script can be imported into other scripts, Wrap your main function in
- If your script can be imported into other scripts, wrap your main function in
a `if __name__ == "__main__":` block:
```python
def main():
Expand Down

0 comments on commit 45f2387

Please sign in to comment.