In Python, the if statement allows us to run or skip a block of code based on specified condition.
Eg.,

raining = False if raining == True: print("Take Umbrella") else: print("No need") 

Output:
No need