🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links
intermediate

Refactor Code for Readability

#refactoring #code-quality #optimization

Improve the structure and readability of a provided code snippet.

Review the following code snippet and refactor it to improve readability and adhere to PEP 8 standards. Extract complex logic into smaller helper functions if necessary. Code: def proc(d,l): r=[]; [r.append((x*2) if x%2==0 else (x/2)) for x in l if x in d]; return r