How to determine whether a Python string contains an emoji?
<p>I've seen previous responses to this question, but none of them are recent and none of them are working for me in Python 3. I have a list of strings, and I simply want to identify which ones contain emoji. What's the fastest way to do this?</p>

<p>To be more specific, I have a lengthy list of email subject lines from AB tests, and I'm trying to determine which subject lines contained emoji.</p>

<p>You could do something like this</p>

<pre><code>text = input('What is your text? ')
if text != 'a' # or b c d -z then all other characters + - etc
</code></pre>

<p>However this would be a long way of doing it.</p>

python emoji