Solution for Pro25 with Python