Challenge: Built-In Iterators in Use
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
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'.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 5. Chapitre 2
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Section 5. Chapitre 2