point = 189 prize = "No prize" if point <= 50: prize = "wooden rabbit" elif 51 <= point <= 150: prize = "No prize" elif 151 <= point <= 180: prize = "wafer-thin mint" elif 181 <= point <= 200: prize = "penguin" if prize == "No prize": print("oh dear, no prize this time") else: print("Congratulations! You have won a " + prize + "!" )
keywords like and, or and not
if is_raining and is_sunny: print("Is there a rainbow?") if (not do_not_emai) and (location == "USA" or location == "CAN"): send_email()