filmov
tv
Python Tutorial: conditional statement in Python

Показать описание
There are three keywords for the conditional statements in python
-if
-elif
-else
Syntax:
if condition1:
expression1
elif condition2:
expression2
else:
expression3
-if
-elif
-else
Syntax:
if condition1:
expression1
elif condition2:
expression2
else:
expression3