Introduction
In this blog, I will explain about the Elseif condition in Python. It will display in the Run module.
Software Requirement
Python 3.5.2.
Simple programming
- print('Welcome To Tutor Joes...')
- print('Else If Statement :')
- value=input("Enter The Value :")
-
- if int(value)==5:
- print("Equal To 5..")
- elif int(value)>5:
- print("Greater Than 5..")
- else:
- print("lesser Than 5..")
Explanation
In this blog, I explained about the elseif condition. It will be executed and printed, as per the condition, being evaluated.
Output
Welcome To Tutor Joes...
Else If Statement :
Enter The Value :2
lesser Than 5..
>>>