4 - Learn Python, Conditional instructions
![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmWvad7shEbv5xUambYQtynd2Y4VKKpgwGVsiLzYQKpp74/qjrE4yyfw5pEPvDbJDzhdNXM7mjt1tbr2kM3X28F6SraZdK6SGyi82n1ieb5oV8juTivigGYZV5b6TtubmMwVQzYAoVtHBU2xybeiaH2SV3uF2jcS99oNpU6.png)
If-elif-else executes statements based on one or more conditions.
For example, let's check if the number entered is greater than or equal to 10:
a= int(input('insert number '))
if a>=10:
print('The number entered is greater than 10')
else:
print('The number is less than 10 :( ')
But it is possible that we have a block of conditions, in this case we add the elif construct:
a= int(input('insert number '))
if a>=10:
print 'The number entered is greater than 10'
elif a==0:
print a, 'is equal to zeroo!!!! '
else:
print 'The number is less than 10 :( '