Intermedio
19 agosto 2026

Trova il bug: Data Analytics

Uno snippet di codice. Trova il bug, o dimostra che non ce n'è.

python
1import asyncio
2import aiohttp
3
4async def fetch_user_data(user_id: int) -> dict:
5    async with aiohttp.ClientSession() as session:
6        url = f"https://api.example.com/users/{user_id}"
7        async with session.get(url) as resp:
8            return await resp.json()
9
10async def collect_profiles(user_ids: list[int]) -> list[dict]:
11    profiles = []
12    for uid in user_ids:
13        data = fetch_user_data(uid)
14        profiles.append(data)
15    return profiles

Clicca sulle righe che causano il problema.

Il tuo verdetto

Un tentativo al giorno. La risposta appare subito dopo.

Mantieni la tua serie

Crea un account per conservare la tua serie e seguire i tuoi progressi.

Crea un account
Sfida code review Data Analytics del giorno | SharpSkill