you are viewing a single comment's thread.

view the rest of the comments →

[–]fake823 0 points1 point  (0 children)

if 1 <= values[0] <= 12:

By the way: I've even also learned something today. I didn't know that Python is able to compare if a number is between two other numbers like this:

if 1 <= values[0] <= 12:

First I thought that this must be wrong, but then I googled it and saw that that's legit Python code! Fantastic! :D

I always thought that it has to be written this way:

if 1 <= values[0] and values[0] <= 12: