Determining whether a variable is less/greater than a range.

simonharrison.uk at googlemail.com simonharrison.uk at googlemail.com
Mon Dec 8 05:44:56 EST 2008


Hi. I'm having another go at learning Python so I'll probably be
asking a few basic questions. Here is the first one.

a = list(range(10, 21)

b = 9

c = 21

How can I find out if b and c have values less or more than the values
in list a?

Thanks.





More information about the Python-list mailing list