Using Logical Operators in Python
📖 Scenario: You are helping a small store decide if a customer qualifies for a special discount based on their age and membership status.
🎯 Goal: Build a program that uses logical operators to check if a customer is either a member or an adult, and then print if they qualify for the discount.
📋 What You'll Learn
Create a dictionary with customer names as keys and their ages as values
Create a set of members containing the names of customers who are members
Use logical operators
and, or, and not to check conditionsPrint the qualification result for each customer
💡 Why This Matters
🌍 Real World
Stores often give discounts based on membership or age. This program helps decide who gets a discount.
💼 Career
Understanding logical operators and data structures is key for roles in software development, data analysis, and automation.
Progress0 / 4 steps