Search posts, tags, users, and pages
Siddharth Chandra
Totally agree with you on that list comprehensions work faster than traditional loops. Generally, if we write more pythonic code, it will always be more time-efficient I think.
GirlThatLovesToCode
It's definitely more pythonic. But I did some research and it should be faster on simpler cases, but not on more complicated ones.
Yeah, I feel like as the complexity increases, python code execution tends to be slower irrespective of its pythonic nature 😅
This is an interesting idea 😅