結果 : how to cap values in python