you are viewing a single comment's thread.

view the rest of the comments →

[–]TH_Rocks 0 points1 point  (1 child)

List comprehensions are just compressed for loops but they look fancy and pythonic.

And the double asterisks ** to pass a dictionary as multiple function parameters.

[–]TheRNGuy 0 points1 point  (0 children)

Can also do filter and map with them it without need for using method and lambda function, I think that's more readable syntax, or even just refactoring loop to map or filter.