Apple Interview Question

Python coding tricks, basic ML/Stats problems