1 / 9

Give It a Shorter Name

Some module names are long, and you type them in front of every single call: statistics.mean, statistics.median, statistics.mean again.

One more word fixes that. import statistics as st means "bring in statistics, but call it st here" — and from then on, st.mean(...) does exactly what statistics.mean(...) did.

Everything works the same. Only the label changed.