0
0
No-Codeknowledge~15 mins

Filtering and conditional logic in No-Code - Mini Project: Build & Apply

Choose your learning style9 modes available
Filtering and Conditional Logic
📖 Scenario: You are organizing a community event and have a list of participants with their ages. You want to find out who is eligible to participate in the adult activities, which require participants to be 18 years or older.
🎯 Goal: Build a simple filtering process to identify participants who are 18 years old or older using conditional logic.
📋 What You'll Learn
Create a list of participants with their ages
Set an age limit for adult activities
Use conditional logic to filter eligible participants
List the names of eligible participants
💡 Why This Matters
🌍 Real World
Filtering and conditional logic are used in many real-life situations like event planning, customer segmentation, and decision making based on criteria.
💼 Career
Understanding how to filter data and apply conditions is essential for roles in data analysis, programming, and business operations.
Progress0 / 4 steps
1
Create the participants list
Create a list called participants with these exact entries: {'Alice': 17}, {'Bob': 20}, {'Charlie': 16}, {'Diana': 22}, {'Ethan': 19}.
No-Code
Need a hint?

Use a dictionary to store participant names as keys and their ages as values.

2
Set the age limit
Create a variable called age_limit and set it to 18 to represent the minimum age for adult activities.
No-Code
Need a hint?

Use a simple variable to store the age limit number.

3
Filter eligible participants
Create a list called eligible_participants that includes the names of participants whose age is greater than or equal to age_limit. Use a for loop with variables name and age to iterate over participants.items() and an if statement to check the age condition.
No-Code
Need a hint?

Use a loop to check each participant's age and add their name to the list if they meet the age limit.

4
Complete the eligibility list
Add a final line to create a variable called result and set it equal to the eligible_participants list.
No-Code
Need a hint?

Assign the filtered list to a new variable called result to complete the process.