Chaining comparision

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

1 answer to this question.

0 votes

I assume you are talking about this - 

>>> 5 < x < 10
True

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

+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 351 views
+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
• 8,550 points
1,614 views