The if statement in python is same as c language which is used test a condition. If condition is true, statement of if block is executed otherwise it is skipped.
Syntax of python if statement:
Example of if statement in python
- if a==10:
- print “Hello User”