You can use the logical and
operator to check if a value i
is both greater than or equal to 5 and less than or equal to 10:
main.py138 chars5 lines
Alternatively, you can use chained comparison operators to achieve the same result:
main.py132 chars5 lines
gistlibby LogSnag