The simplest conditional statement that we can write is the if statement. It comprises of two parts:
The condition
The code to be executed
svg viewer
The : in the illustration above is necessary to specify the beginning of the if statement’s code to be executed. However, the parentheses, (), around the condition are optional. The code to be executed is indented at least one tab to the right.