In CS 101, one learns that languages (such as C, Java, etc.) do not accept the following.
if (min1 < i1 <= max1) {
...
}
Welcome to Python, where the language is adapted to the programmer instead of the programmer to the language.
Here is the Python code [#1]
Here is the output of the Python code.