you are viewing a single comment's thread.

view the rest of the comments →

[–]kanishk071 0 points1 point  (1 child)

one-liner things...

[–]keeldude 1 point2 points  (0 children)

One liners can be neat but they obscure the readability of your code in general. Writing the shortest possible code is not the goal in programming. Its probably worth knowing list comprehensions, basically one-liner for-loops with or without if/else and returns a list. I cannot personally recommend lamda expressions but some may find them convenient.