---
title: "Comment by Akash Desarda on \"5 Python Pitfalls that can save you HOURS of debugging!\" | Hashnode"
description: "About using parenthesis in assert statements (according to Black code format tool) the correct way is assert (a == b), &quot;Both languages are different&quot;"
url: "https://hashnode.com/posts/5-python-pitfalls/6148acc117da986cea648086/comment/614da88305ebd95c9caec7f6"
---

[Discussion](https://hashnode.com/posts/5-python-pitfalls/6148acc117da986cea648086)

Comment [5 Python Pitfalls that can save you HOURS of debugging!](https://hashnode.com/posts/5-python-pitfalls/6148acc117da986cea648086)

[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!
