how to print if else in python