python for loop if else continue