+ 2
Can anyone explain this to me?
What -> if 1 in c.values() does, where c is a counter?
1 Antwort
+ 5
It goes through the values of c and if anywhere in c is a "1", it returns true and executes the code inside the if-statement
What -> if 1 in c.values() does, where c is a counter?