結果 : how do nested conditionals work in python provide an example