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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Identify the most frequently used emoji across all reactions. Select the correct option from the choices below.
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.
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.
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.