You've learned how comparison operators work. Now write some yourself and see the results.
Your tasks
Given these starting values:
score = 74
passing_score = 70
perfect_score = 100
1. Check if score is greater than or equal to passing_score and store it in passed
2. Check if score is equal to perfect_score and store it in is_perfect
3. Check if score is not equal to perfect_score and store it in not_perfect
4. Print all three values, one per line
Expected output
Constraints
- Use comparison operators only — no
if statements yet
- No external libraries