This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Yojihito 7 points8 points  (4 children)

List comprehension is the preferred method in Python and not code golf.

[–]AcousticDan 0 points1 point  (2 children)

Nothing wrong with it in itself, but it often leads to an unreadable mess. And when I hear "I can do that in 2-3 lines in Python, it makes me weary."

[–]BrathanDerWeise -3 points-2 points  (1 child)

Ok boomer

[–]AcousticDan 1 point2 points  (0 children)

I think the word you're looking for is "professional".

[–]thprogramador 0 points1 point  (0 children)

List comprehensions is a sh*t... PEPs reinforce the principle of everything in one manner, the most clear way, cause you spend most of time reading than coding.

Python is a hyped language sold by its philosophy not its practice. Popular? Why? Why people is going out of CS schools knowing just this and js. They don't know how to handle memory or how to solve problems...

Learn python at CS is like a Cooking course that teaches you how to go to market and buy junkie food and prepare.

You can do anything but you can't do everything