結果 : write a python program using nested if statement