Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Desafio: Exercícios de Fatiamento e Busca | Strings
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Tipos de Dados em Python

bookDesafio: Exercícios de Fatiamento e Busca

Tarefa

Swipe to start coding

Use simple string tools — methods, slicing, in, and f-strings — to complete each expression. All variables are already defineddo not change them.

Compute:

  1. name_clean — remove extra spaces from full_name.
  2. has_quick — check if "quick" appears in sentence (case-insensitive).
  3. inside_parens — extract text between parentheses ( and ).
  4. o_count — count how many 'o' letters are in sentence (case-insensitive).
  5. domain — from email, take everything after @ (after trimming and lowercasing).
  6. report — build "Name | Domain | Count" using an f-string and SEP.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 6
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

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

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookDesafio: Exercícios de Fatiamento e Busca

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Use simple string tools — methods, slicing, in, and f-strings — to complete each expression. All variables are already defineddo not change them.

Compute:

  1. name_clean — remove extra spaces from full_name.
  2. has_quick — check if "quick" appears in sentence (case-insensitive).
  3. inside_parens — extract text between parentheses ( and ).
  4. o_count — count how many 'o' letters are in sentence (case-insensitive).
  5. domain — from email, take everything after @ (after trimming and lowercasing).
  6. report — build "Name | Domain | Count" using an f-string and SEP.

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 3. Capítulo 6
single

single

some-alt