solve 3 using py