If Loop In Python

Responsive image
source