Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Built-In Iterators in Use | Python Iterators
Functional Programming Concepts in Python

bookChallenge: Built-In Iterators in Use

Swipe to show menu

Task

Swipe to start coding

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

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 5. Chapter 2

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Section 5. Chapter 2
some-alt