結果 : for loop with if else condition in python