GH avatar Bite 231. Where are the emojis?

In this Bite you are given a list of strings that contain emojis. Complete get_emoji_indices returning a list of indices of the emojis found in the text.

Here is an example how it should work:

>>> from emojis import get_emoji_indices
>>> text = "We see more and more 🐍 Python 🥋 ninjas, keep it up 💪"
>>> text.index('🐍')
21
>>> text.index('🥋')
30
>>> text.index('💪')
51
>>> get_emoji_indices(text)
[21, 30, 51]

Have fun and keep calm and code in Python!

Login and get coding
go back Beginner level
Bitecoin 2X

50 out of 50 users completed this Bite.
Will you be Pythonista #51 to crack this Bite?
Resolution time: ~18 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 2.75 on a 1-10 difficulty scale.
» You can do it! 😌

We use Python 3.7