The right way to check of a string has hebrew chars <p>The Hebrew language has unicode representation between 1424 and 1514 (or hex 0590 to 05EA).</p> <p>I'm looking for the right, most efficient and most pythonic way to achieve this.</p> <p>First I came up with this:</p> <pre><code>for c in s: if ord(c) &gt;= 1424 and ord(c) &lt;= 1514: return True return False </code></pre> <p>Then I came with a more elegent implementation:</p> <pre><code>return any(map(lambda c: (ord(c) &gt;= 1424 and ord(c) &lt;= 1514), s)) </code></pre> <p>And maybe:</p> <pre><code>return any([(ord(c) &gt;= 1424 and ord(c) &lt;= 1514) for c in s]) </code></pre> <p>Which of these are the best? Or i should do it differently?</p>