You are viewing a single comment's thread. Return to all comments →
What is the comma doing here exactly?
year % 100 != 0, year % 400 == 0
Is it testing the output of "%100 != 0", and if it returns false it tests for the "% 400 == 0" conditional?
the any function takes an iterable so it is basically saying: if any of the items in this iterable is true return true. so the comma makes them elements of a list between the brackets.
You can think it as an OR operation in this case.
alexandar_naray1 expains it very well.