🏠 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
medium

Refactor Code for Readability

Improve the structure and naming conventions of a given Python function.

Refactor the following Python function to improve readability and adhere to PEP 8 standards. Rename variables to be descriptive, add docstrings, and simplify complex logic where possible: def calc(a, b, c): if c > 0: return a * b else: return a + b