Challenge: Built-In Iterators in Use
Scorri per mostrare il menu
Compito
Scorri per iniziare a programmare
Write a function named format_scores that takes two lists, names and scores, of equal length.
- Use Python's built-in iterators to process both lists in parallel.
- The numbering should start at 1.
- Return a list of these formatted strings, in order.
- Expected result:
'1. Alice scored 85','2. Bob scored 92','3. Charlie scored 78'.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 5. Capitolo 2
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Sezione 5. Capitolo 2