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
Functional Programming Concepts in Python
Sezione 5. Capitolo 2
single

single

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

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 5. Capitolo 2
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

some-alt