---
title: "Discussion on \"Python - 5 Cool Tricks\" | Hashnode"
description: "Discussion on \"Python - 5 Cool Tricks\". 1. Readable long number\nIf you are declaring a long number (eg. 10 million) in your code, it would be much harder for other guys to read it (10000000 ❌). So to avoid this, python has a special feature for you. You can split the numbers with \"_\". This..."
url: "https://hashnode.com/posts/python-5-cool-tricks/602748dc4f6b4462941e0199"
---

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

Discussion

# [Python - 5 Cool Tricks](https://blog.maransowthri.dev/python-5-cool-tricks?utm_source=hashnode&utm_medium=feed)

1\. Readable long number If you are declaring a long number (eg. 10 million) in your code, it would be much harder for other guys to read it (10000000 ❌). So to avoid this, python has a special feature for you. You can split the numbers with "\_". This...

Feb 13, 2021 · 3 min read · blog.maransowthri.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#devcommunity](https://hashnode.com/tag/devcommunity)
-   [#developer](https://hashnode.com/tag/developer)

## Written by

[Maran Sowthri Kalailingam](https://hashnode.com/@maransowthri)

@maransowthri · Chennai, India.

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

Software Engineer @athenahealth

Senior Software Engineer at athenahealth

## Responses 1

Markdown supported · ⌘↵ to post

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Feb 15, 2021](https://hashnode.com/posts/python-5-cool-tricks/602748dc4f6b4462941e0199/comment/602a115999eab86a04872dc6)

Great article!

Actually, JavaScript will add the underscores to improve the readability of long numbers in ES2021 too. 🤩

[Maran Sowthri Kalailingam](https://hashnode.com/@maransowthri)

[Feb 15, 2021](https://hashnode.com/posts/python-5-cool-tricks/602748dc4f6b4462941e0199/comment/602a115999eab86a04872dc6#reply-602a641740efdc777c71bee5)

that's awesome, thanks for sharing!
