🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful 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