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

226 out of 230 users completed this Bite.
Will you be the 227th person to crack this Bite?
Resolution time: ~27 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.22 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help