An example of a chained comparison is shown below.
age = 25
if 18 < age <= 25:
print('Chained comparison!')
Note that beneath the covers this is exactly the same as shown below, it just looks nicer.
age = 25
if 18 < age and age <= 25:
print('Chained comparison!')