---
title: "Discussion on \"Some Python built-in features that could lead to bugs\" | Hashnode"
description: "Discussion on \"Some Python built-in features that could lead to bugs\". Python is regarded as one of the most powerful programming languages. And we all know that \"with great power comes great responsibility\". Therefore, it is the responsibility of the programmer to ensure they don't run into some of the inbuilt bugs in ..."
url: "https://hashnode.com/posts/some-python-built-in-features-that-could-lead-to-bugs/6013441a2e1296101bd585ec"
---

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

Discussion

# [Some Python built-in features that could lead to bugs](https://iamoracle.dev/some-python-built-in-features-that-could-lead-to-bugs?utm_source=hashnode&utm_medium=feed)

Python is regarded as one of the most powerful programming languages. And we all know that "with great power comes great responsibility". Therefore, it is the responsibility of the programmer to ensure they don't run into some of the inbuilt bugs in ...

Jan 28, 2021 · 2 min read · iamoracle.dev  
Updated Jul 17, 2022  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#bugs-and-errors](https://hashnode.com/tag/bugs-and-errors)

## Written by

[iamoracle](https://hashnode.com/@iamoracle)

@iamoracle · Lagos, Nigeria

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

Blockchain Software Developer | Open Source Promoter | AI Enthusiast | Advocate for Decentralisation

I am a blockchain software developer with years of experience in JavaScript, Python, PHP and Solidity.

## Responses 1

Markdown supported · ⌘↵ to post

[Aagam Sheth](https://hashnode.com/@AagamSheth)

[Jan 29, 2021](https://hashnode.com/posts/some-python-built-in-features-that-could-lead-to-bugs/6013441a2e1296101bd585ec/comment/6013fce813f0a55761bdc4f7)

```
return balance 
- amount
```

Line breaks in Python or any language assumes that a new statement has started. Python is a dynamic language, so you can't simply check for compilation errors and end of a statement `;` is not used in Python. So in the above code `balance` is returned. The interpreter never reaches `- amount` which never throws a error.

To write a statement in multiple lines you use `\` character to notify the interpreter that the next line is a part of the current statement.

```
  return balance \  # Line below is a part of current statement.
  - amount
```

Also floating point is not a bug of python but the underlying platform handling numbers. It happens because it is the way the underlying c platform (on which python works in a sense) handles floating-point numbers. Floating point error is not a bug. [Stackoverflow](https://stackoverflow.com/questions/62991249/how-pythons-round-function-works/62991488#62991488)

PS : Apologies. My intensions are not to criticize. Just sharing my opinions.

[iamoracle](https://hashnode.com/@iamoracle)

[Jan 29, 2021](https://hashnode.com/posts/some-python-built-in-features-that-could-lead-to-bugs/6013441a2e1296101bd585ec/comment/6013fce813f0a55761bdc4f7#reply-60143e87e54673573b570892)

Thank you very much for the explanation.

I believe we are saying almost the same thing. Check the explanation in the article, I explicitly stated that "This is a good practice that could lead to a potential bug as only the expressions directly on the same line as the return gets evaluated."
