Update m3.py

Cheating by using python builtin function