Challenge: Access and Perks Checker
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
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Can you explain this in simpler terms?
What are some examples related to this topic?
Where can I learn more about this?
Awesome!
Completion rate improved to 3.45
Challenge: Access and Perks Checker
Swipe to show menu
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
Thanks for your feedback!
single