A nested if statement means placing one if statement inside another if block.
Syntax :
Python
if condition1: # outer if block if condition2: # inner if block statements Example :
Python
age = 20 citizen = True if age >= 18: if citizen: print("Eligible to vote") #output Eligible to vote