What is the syntax for If statement?

if <condition1>:
     <code if condition1 is true>
elif <condition2>:
     <code if condition2 is true and condition1 is false>
...
else:
     <code if neither conditions above are true>
#examples
age = 17
name='Tom'

if age>=19:
 print("You can legally drink!")
else:
 print("You are underage")

if name=='Tim':
 print("Your name is Tim")
elif name=='Tom':
 print("Your name is Tom")
else:
 print("Your name is neither Tim or Tom")

#output
You are underage
Your name is Tom
Advertisements