DEV Community

Discussion on: 15 Python tips and tricks every beginner should know !

Collapse
aidri profile image
AIDRI Author

It's true that you can use that, but I wanted to keep it pretty clear in my post. But your trick is useful in "small" functions like this one to avoid making the code ugly

Some comments have been hidden by the post's author - find out more