mathspp blog

438 476,812 39,350
articles words lines of code

Today I learned how to do multiline input in the REPL using an uncommon combination of arguments for the built-in open.

Learn how to remove extra spaces from a string using regex, string splitting, a fixed point, and itertools.groupby.