โธ๏ธย Just a quick tangent, here.
This โtrickโ isn't really a trick.
`sum` is an algorithm of the family of reductions, so if you know how reductions work, you know why `sum(z, ())` works.
You can read about reductions here:
mathspp.com
This โtrickโ isn't really a trick.
`sum` is an algorithm of the family of reductions, so if you know how reductions work, you know why `sum(z, ())` works.
You can read about reductions here:
mathspp.com
If you want to see some examples of `zip` used in production code, take a look at this article of mine ๐
mathspp.com
mathspp.com
That's it!
Did I miss anything?
If you enjoyed this thread:
๐ย follow me @mathsppblog for more Python ๐ย knowledge; and
๐ย retweet the tweet below to share this thread with your audience! ๐
Did I miss anything?
If you enjoyed this thread:
๐ย follow me @mathsppblog for more Python ๐ย knowledge; and
๐ย retweet the tweet below to share this thread with your audience! ๐
Loading suggestions...