Challenge: Access and Perks Checker
Task
Swipe to start coding
You're checking simple user conditions during checkout.
All input variables are already defined - do not change them.
Use only comparison and logical operators:
==, !=, <, <=, >, >=, and, or, not, and parentheses.
Compute:
is_adultβ the user is at leastadult_age.can_enterβ the user can enter if they are an adult and have an ID.qualifies_free_shippingβ true ifpurchase_totalmeets thefree_shipping_thresholdor the user is amember.needs_manual_reviewβ true if email or phone is not verified.valid_score_rangeβ the score is within the range[min_score, max_score]using a chained comparison.
Finally, print all five results in one line.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 5
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.26
Challenge: Access and Perks Checker
Swipe to show menu
Task
Swipe to start coding
You're checking simple user conditions during checkout.
All input variables are already defined - do not change them.
Use only comparison and logical operators:
==, !=, <, <=, >, >=, and, or, not, and parentheses.
Compute:
is_adultβ the user is at leastadult_age.can_enterβ the user can enter if they are an adult and have an ID.qualifies_free_shippingβ true ifpurchase_totalmeets thefree_shipping_thresholdor the user is amember.needs_manual_reviewβ true if email or phone is not verified.valid_score_rangeβ the score is within the range[min_score, max_score]using a chained comparison.
Finally, print all five results in one line.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 5
single