What's the most pythonic range to check to what particular range (out of many) a number belongs?
I know I can check if a number X belongs to a particular range (out of Y consecutive ranges) by using concatenated if ... elif ... else ... but is there a more concise, pythonic way to do so?
Aucun commentaire:
Enregistrer un commentaire