0
0
AI for Everyoneknowledge~30 mins

AI for comparing schools and programs in AI for Everyone - Mini Project: Build & Apply

Choose your learning style9 modes available
AI for Comparing Schools and Programs
📖 Scenario: You want to use AI to help students choose the best school and program for their needs. You will create a simple step-by-step project that shows how AI can organize and compare information about schools and their programs.
🎯 Goal: Build a basic AI awareness project that sets up school data, configures comparison criteria, applies a comparison method, and completes the process to help students decide.
📋 What You'll Learn
Create a dictionary with exact school names and their programs
Add a configuration variable for minimum program rating
Use a loop to filter schools based on the rating
Complete the project by adding a summary variable with the filtered schools
💡 Why This Matters
🌍 Real World
This project shows how AI can help students compare schools and programs by organizing and filtering data based on quality ratings.
💼 Career
Understanding how to structure data and apply filtering logic is useful for roles in education technology, data analysis, and AI-assisted decision making.
Progress0 / 4 steps
1
DATA SETUP: Create a dictionary of schools and their programs
Create a dictionary called schools with these exact entries: 'Greenwood High': {'Math': 8, 'Science': 7}, 'Lakeside Academy': {'Math': 9, 'Science': 6}, 'Hilltop School': {'Math': 7, 'Science': 8}
AI for Everyone
Need a hint?

Use a dictionary with school names as keys and another dictionary for programs and ratings as values.

2
CONFIGURATION: Set a minimum program rating for comparison
Create a variable called min_rating and set it to 7 to use as the minimum rating for programs.
AI for Everyone
Need a hint?

Just create a simple variable with the number 7.

3
CORE LOGIC: Filter schools with programs meeting the minimum rating
Create a dictionary called filtered_schools that includes only schools where all program ratings are greater than or equal to min_rating. Use a for loop with school and programs to iterate over schools.items().
AI for Everyone
Need a hint?

Use a for loop and the all() function to check program ratings.

4
COMPLETION: Add a summary variable with the filtered school names
Create a list called summary that contains only the names of schools from filtered_schools. Use a list comprehension with school for school in filtered_schools.
AI for Everyone
Need a hint?

Use a list comprehension to get the keys from the filtered_schools dictionary.