Orta seviye
19 Ağustos 2026

Hatayı bul: Data Analytics

Tek bir kod parçası. Hatayı bul ya da hata olmadığını kanıtla.

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

Soruna yol açan satırlara tıkla.

Kararın

Günde bir deneme. Cevap hemen ardından görünür.

Serini koru

Serini korumak ve ilerlemeni takip etmek için hesap oluştur.

Hesap oluştur