Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Sfida: Esercizi su Slicing e Ricerca | Stringhe
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Tipi di Dati in Python

bookSfida: Esercizi su Slicing e Ricerca

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 6
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookSfida: Esercizi su Slicing e Ricerca

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 6
single

single

some-alt