🏠 الرئيسية
المقاييس
📊 جميع المقاييس 🦖 ديناصور v1 🦖 ديناصور v2 ✅ تطبيقات قائمة المهام 🎨 صفحات حرة إبداعية 🎯 FSACB - العرض النهائي 🌍 مقياس الترجمة
النماذج
🏆 أفضل 10 نماذج 🆓 نماذج مجانية 📋 جميع النماذج ⚙️ كيلو كود
الموارد
💬 مكتبة الأوامر 📖 قاموس الذكاء الاصطناعي 🔗 روابط مفيدة
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