Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Built-In Iterators in Use | Python Iterators
Concetti di Programmazione Funzionale in Python

bookChallenge: 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?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 5. Capitolo 2

Chieda ad AI

expand

Chieda ad AI

ChatGPT

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

Sezione 5. Capitolo 2
some-alt