2 ms·
Similarly, I thought "from fractions import Fraction" required a `pip install fractions`. But nope, turns out fractions is a built-in module I've never heard of
by sillysaurusx 5y ago
Similarly, I thought "from fractions import Fraction" required a `pip install fractions`. But nope, turns out fractions is a built-in module I've never heard of. Neat!
- beforeolives 5y agoSimilarly, one of the most suprising things for me was that complex numbers are built into the language (no imports at all).