Sfida: 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 defined — do not change them.
Compute:
name_clean— remove extra spaces fromfull_name.has_quick— check if"quick"appears insentence(case-insensitive).inside_parens— extract text between parentheses(and).o_count— count how many'o'letters are insentence(case-insensitive).domain— fromemail, take everything after@(after trimming and lowercasing).report— build"Name | Domain | Count"using an f-string andSEP.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 6
single
Chieda ad AI
Chieda ad AI
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?
Fantastico!
Completion tasso migliorato a 3.45
Sfida: 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 defined — do not change them.
Compute:
name_clean— remove extra spaces fromfull_name.has_quick— check if"quick"appears insentence(case-insensitive).inside_parens— extract text between parentheses(and).o_count— count how many'o'letters are insentence(case-insensitive).domain— fromemail, take everything after@(after trimming and lowercasing).report— build"Name | Domain | Count"using an f-string andSEP.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 6
single