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('🐍')
>>> text.index('🥋')
>>> text.index('💪')
>>> 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

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

We use Python 3.8