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.
Two distinct courses have student enrollments. Develop sets for each course and identify students who are concurrently enrolled in both courses.
Students in Course A: ["Alice", "Bob", "Carol", "David"]
Students in Course B: ["Bob", "David", "Eve", "Frank"]
Construct sets for both Course A and Course B as course_a_students
and course_b_students
. Subsequently, ascertain the students who are enrolled in both courses as common_students
.
Keyword lists from two separate articles are provided. Establish sets for each article's keywords and identify the distinctive keywords utilized in both articles.
Keywords in Article 1: ["data", "analysis", "Python", "statistics"]
Keywords in Article 2: ["machine learning", "Python", "data", "programming"]
Generate sets for the keywords in both articles, denoting them as article1_keywords
and article2_keywords
. Determine the unique keywords utilized in both articles and designate them as unique_keywords
.
Two distinct sources have provided email addresses. Construct sets for each source's email addresses and uncover the unique email addresses encompassing both sources.
Email addresses from Source A: ["alice@example.com", "bob@example.com", "carol@example.com"]
Email addresses from Source B: ["carol@example.com", "david@example.com", "eve@example.com"]
Formulate sets for the email addresses in both sources, labeling them as sourceA_emails
and sourceB_emails
. Discover the unique email addresses that are present in both sources and assign them as unique_emails
.
Incorporate the new student named Sam into the Data Novice badge group.
Eliminate the student named Elvia
from all badge sets as she has left the server.
Find the union of data_explorer_badge
and analytics_enthusiast_badge
sets and store the result in a variable named union_de_ae
.
The variable
union_de_ae
is a type set.
Check if Chandler
is in the Badge Insight Seeker
.
Find students with Data Wizard
badge but not with Data Scientist
badge and store the result in a variable named data_wizard_not_scientist
.
Determine the total number of members who have received the Analytics Enthusiast
badge.
Enter your answer in below imput box as an integer.
Find students with badges in Data Explorer
, Problem Solver
, and Data Ninja
categories and store the result in a variable named data_explorer_problem_solver_data_ninja
.
Find students with Data Novice
and Data Detective
badges, but not both and store the result in a variable named data_novice_xor_data_detective
.
Check if Data Detective
badge is a subset of Insight Seeker
badge.
Perform an update on the Trend Tracker
badge set by including students who hold both the Problem Solver
and Data Ninja
badges. Transfer these common students to the Trend Tracker
badge.
Make sure you only add the students to
Trend Tracker
, do not remove them from any badge.
Determine the student with the shortest and longest name within the "Data Novice" badge set.
Provide your response in the box below, separating the shortest student's name from the longest student's name using a comma. For instance:
Ella, Maria
.
Select the correct answer.