If else statement is heavily used in most of the application built in the industry. Turning rules into conditions in python might be challenging but with the use of AND operator and OR operator will help in solving most of them.
If Else Statement
print(“if condition is True”)
print(“elif condition is True”)
print(“All conditions are False”)