Chaining comparision

0 votes
How does a chaining comparison work in python?
Jun 26, 2018 in Python by nightshade
• 870 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

I assume you are talking about this - 

>>> 5 < x < 10

This chaining comparison is treated just like a mathematical expression. The expression returns true in the above exmaple, if x is greater than 5 and lesser than 10

answered Jun 26, 2018 by Hamartia's Mask
• 1,580 points

Related Questions In Python

0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 920 points
+4 votes
6 answers
0 votes
1 answer

comparision between OPC UA protocol and MQTT protocol

This is the first time I'm seeing ...READ MORE

answered Sep 4, 2018 in IoT (Internet of Things) by Upasana
• 7,440 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.