Im trying to understand the possibilities with Booleans in Python.
I don't want to use an If statement.
its_valid = True
but I want something like this
its_valid = True if taking_stones == 2 or taking_stones == 1
Is it possible in python and just out of curiosity if not in what language is it?
Edit: second question
Is it possible to use a range as well? (from 1 to 2)
its_valid = True if taking_stones 1:2