---
title: "Discussion on \"5 Python Pitfalls that can save you HOURS of debugging!\" | Hashnode"
description: "Discussion on \"5 Python Pitfalls that can save you HOURS of debugging!\". Knowing this can save you HOURS of debugging! (5 Python Pitfalls)"
url: "https://hashnode.com/posts/5-python-pitfalls/6148acc117da986cea648086"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [5 Python Pitfalls that can save you HOURS of debugging!](https://patloeber.hashnode.dev/5-python-pitfalls?utm_source=hashnode&utm_medium=feed)

Knowing this can save you HOURS of debugging! (5 Python Pitfalls)

Sep 20, 2021 · 4 min read · patloeber.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)

## Written by

[Patrick Loeber](https://hashnode.com/@patloeber)

@patloeber

  
[View profile](https://hashnode.com/@patloeber)

Creating content about Python and ML

## Responses 2

Markdown supported · ⌘↵ to post

[Akash Desarda](https://hashnode.com/@akashdesarda)

[Sep 24, 2021](https://hashnode.com/posts/5-python-pitfalls/6148acc117da986cea648086/comment/614da88305ebd95c9caec7f6)

About using parenthesis in assert statements (according to Black code format tool) the correct way is

`assert (a == b), "Both languages are different"`

[Patrick Loeber](https://hashnode.com/@patloeber)

[Sep 30, 2021](https://hashnode.com/posts/5-python-pitfalls/6148acc117da986cea648086/comment/614da88305ebd95c9caec7f6#reply-615563db28ed304eb1d7e641)

That's interesting, thanks for the tip!

[Noah Ford](https://hashnode.com/@noahtf)

[Sep 20, 2021](https://hashnode.com/posts/5-python-pitfalls/6148acc117da986cea648086/comment/6148ae3a17da986cea6480bb)

Great post, these are definitely things in python that could really trip up someone new!

[Patrick Loeber](https://hashnode.com/@patloeber)

[Sep 21, 2021](https://hashnode.com/posts/5-python-pitfalls/6148acc117da986cea648086/comment/6148ae3a17da986cea6480bb#reply-6149d9c520bcc6765ac04db9)

thank you!
