Sezione 1. Capitolo 12
single
Challenge: Access and Perks Checker
Scorri per mostrare il menu
Compito
Scorri per iniziare a programmare
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 12
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione