if - else Basic age = 5 if age == 5: print("condition is true") else: print("condition is false") Single line age = 18 is_adult = "YES" if age >= 18 else "No" print(f"He is an adult : {is_adult}") ***Output*** He is an adult : YES