Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Desafio: Verificador de Acesso e Benefícios | Booleanos e Comparações
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Tipos de Dados em Python

bookDesafio: Verificador de Acesso e Benefícios

Tarefa

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:

  1. is_adult — the user is at least adult_age.
  2. can_enter — the user can enter if they are an adult and have an ID.
  3. qualifies_free_shipping — true if purchase_total meets the free_shipping_threshold or the user is a member.
  4. needs_manual_review — true if email or phone is not verified.
  5. 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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 5
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookDesafio: Verificador de Acesso e Benefícios

Deslize para mostrar o menu

Tarefa

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:

  1. is_adult — the user is at least adult_age.
  2. can_enter — the user can enter if they are an adult and have an ID.
  3. qualifies_free_shipping — true if purchase_total meets the free_shipping_threshold or the user is a member.
  4. needs_manual_review — true if email or phone is not verified.
  5. 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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 5
single

single

some-alt