Report question

Question: better way than using if-else statement in python