Conditions

In a Python program, the if the statement is how you perform this sort of decision-making

if/elif/else Statements

x = 12 if x < 0: x = 0 print('Negative changed to zero') elif x == 0: print('Zero') elif x == 1: print('Single') else: print("More")