Learn Python like a Professional! Take You from 0 to Hero
In this Python lecture, we will learn about the Chain Comparison Operators.
"Chain Comparison operators are used to combine complex boolean expression".
"Chain Comparison operators are used to combine complex boolean expression".
Let's see some example-
print( 3<4<5 )
print( 1<2>3 )
print( 1<3>2 )
print( 3<4 and 4<5 )
print( 3>4 and 4>5)
print( 3==4 )
>> False
print( 3==4 or 4<5 )
print( 1>2 or 2<3 )
print( 1<2 or 2>3 )
print( 3<4 or 4>5 )
print( (1<2 or 2>3) and (3<4 or 4>5) )
In the next Blog, we will discuss Chain Comparison Operator
https://sngurukuls247.blogspot.com/2018/09/python-ninja-bootcamp-16-if-elif-else.html
......................................................................................................................................
Instagram-
https://www.instagram.com/python.india/
View the Jupyter Notebook for this lecture
Download the Jupyter Notebook for this lecture
https://sngurukuls247.blogspot.com/2018/09/python-ninja-bootcamp-16-if-elif-else.html
......................................................................................................................................
Follow the link below to access Free Python Lectures-
https://www.youtube.com/channel/UCENc9qI7_r8KMf6-_1R1xnwInstagram-
https://www.instagram.com/python.india/
View the Jupyter Notebook for this lecture
Feel free contact me on-
Email - sn.gurukul24.7uk@gmail.com
No comments:
Post a Comment