🏠 Startseite
Vergleiche
📊 Alle Benchmarks 🦖 Dinosaurier v1 🦖 Dinosaurier v2 ✅ To-Do-Listen-Apps 🎨 Kreative freie Seiten 🎯 FSACB - Ultimatives Showcase 🌍 Übersetzungs-Benchmark
Modelle
🏆 Top 10 Modelle 🆓 Kostenlose Modelle 📋 Alle Modelle ⚙️ Kilo Code
Ressourcen
💬 Prompt-Bibliothek 📖 KI-Glossar 🔗 Nützliche 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