HNHacker News
TopNewBestAskShowJobs

lukasgelbmann

198 karma · joined January 29, 2018

submissionscomments
lukasgelbmann··on Python strings are immutable, but only sometimes
Joining on a list (as in function two()) is no more memory intensive than joining on a generator expression (function one()). This is surprising at first. Raymond Hettinger has a very good explanation.[0] In short, it's because "".join() needs to iterate over the elements twice, and so it needs to store the whole sequence of string anyway.

[0] https://stackoverflow.com/a/9061024

lukasgelbmann··on An Innovative World Cup Stock Market Game
It's interesting that while the bookies unanimously have Brazil as favourites [0], this stock market game has Germany ahead of them [1]. It might be because Germany has easier opponents in the group stage.

[0] https://www.oddschecker.com/football/world-cup/winner

[1] https://prediction.zone/stockmarket2/worldcup2018/trading

← PreviousPage 2 of 2