---
title: "Comment by Sérgio Rafael Siqueira on \"Quick Python Refactoring Tips\" | Hashnode"
description: "On 6 and 7 you can remove the else, because in if condition has return statement ."
url: "https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e/comment/61954d1d0b25eb28701f4ff5"
---

[Discussion](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e)

Comment [Quick Python Refactoring Tips](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e)

[Sérgio Rafael Siqueira](https://hashnode.com/@sergiors)

[Nov 17, 2021](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e/comment/61954d1d0b25eb28701f4ff5)

On 6 and 7 you can remove the else, because in if condition has return statement .

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

[Nov 18, 2021](https://hashnode.com/posts/quick-python-refactoring-tips/60f9596c74648858f4bb4d1e/comment/61954d1d0b25eb28701f4ff5#reply-61960c6490fac127e6ea5d82)

yep good point!
