Mastering Lists with Emoji Reactions
Mastering Lists with Emoji Reactions Data Science Project
Python Collections

Mastering Lists with Emoji Reactions

In this Python lab, you'll master essential list operations by analyzing emoji reactions to messages. You'll explore key concepts like counting, sorting, and filtering data in lists. Perfect for beginners and intermediates, this hands-on project will sharpen your Python skills by working with real-world-like datasets, focusing solely on lists without the use of dictionaries, tuples, or sets.
Start this project
Mastering Lists with Emoji ReactionsMastering Lists with Emoji Reactions
Project Created by

Anurag Verma

Project Activities

All our Data Science projects include bite-sized activities to test your knowledge and practice in an environment with constant feedback.

All our activities include solutions with explanations on how they work and why we chose them.

input

Count the Total Number of Reactions

Count the total number of reactions in the variable reactions. Each reaction is represented by an emoji, and you need to calculate the total number of emojis used as reactions across all messages.

Write your answer in the input box below as an integer.

input

Find the message that has received the highest number of reactions.

Find the message that has received the highest number of reactions. Return the message text along with the number of reactions it received.

Write your answer in the input box below as a tuple containing the message text (as a string) and the number of reactions (as an integer).

Example: Message text, 5

There is a single space after the comma.

codevalidated

Find All Unique Reactions (Emojis)

Create a list of unique reactions (emojis) used in the reactions list. Each emoji should appear only once in the final list. Store the unique emojis in a variable named unique_emojis lexicographically sorted in ascending order.

input

How many emojis have not been reacted to?

In the previous activity, you found all the unique emojis used in the reactions. Now, calculate how many emojis from the emojis list have not been reacted to in the reactions list.

Write your answer in the input box below as an integer.

input

How many times `🎉`(party popper) has been used?

Count the total number of times the 🎉 (party popper) emoji has been used as a reaction in the reactions list.

Write your answer in the input box below as an integer.

codevalidated

Identify messages that received no emoji reactions.

Identify messages that received no emoji reactions. Create a list of messages that have not been reacted to by any user. Store the messages in a variable named messages_without_reactions sorted lexicographic in ascending order.

Make sure results are unique.

codevalidated

How many reactions each person has made across all messages.

Calculate the total number of reactions each person has made across all messages. Create a nested list where each entry contains the person's name and the total number of reactions they have made. Store the results in a variable named reactions_per_person sorted in descending order based on the number of reactions and if the number of reactions is the same, sort them lexicographically in ascending order based on the person's name.

input

Find out who has reacted the most times across all messages.

Find out who has reacted the most times across all messages. Return the person's name along with the total number of reactions they have made. If there are multiple people with the same highest number of reactions, write the name of the person who appears first in lexicographic order.

Write your answer in the input box below as a below:

Example: Person Name, 5

There is a single space after the comma.

codevalidated

Find All Messages Reacted by a Specific Person

Find all messages reacted to by a Sophia. Create a list of unique messages that have been reacted to by Sophia. Store the messages in a variable named messages_reacted_by_sophia sorted lexicographically in ascending order.

multiplechoice

Identify the most frequently used emoji across all reactions.

Identify the most frequently used emoji across all reactions. Select the correct option from the choices below.

input

Count the total number of different people who have made reactions.

Count the total number of different people who have made reactions across all messages. Write your answer in the input box below as an integer.

input

Count How Many Messages Were Reacted with a Specific Emoji

Count how many messages were reacted to with the 😂 (face with tears of joy) emoji. Write your answer in the input box below as an integer.

codevalidated

Find and list all messages that have total one emoji reaction.

Find and list all messages that have total one emoji reaction. Create a list of messages that have total one emoji reaction and store them in a variable named messages_with_one_reaction sorted lexicographically in ascending order.

List must contain unique messages.

Mastering Lists with Emoji ReactionsMastering Lists with Emoji Reactions
Project Created by

Anurag Verma

What's up, friends! 👋 I'm a computer science student about to finish my last year of college. 🎓 I LOVE writing code! ❤️ It makes me so happy! 😄 Whether I'm goofing in notebooks 📓 or coding in Python 🐍, writing programs is a blast! 💥

What's up, friends! 👋 I'm a computer science student about to finish my last year of college. 🎓 I LOVE writing code! ❤️ It makes me so happy! 😄 Whether I'm goofing in notebooks 📓 or coding in Python 🐍, writing programs is a blast! 💥

This project is part of

Python Collections

Explore other projects