🏠 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

Debug a Python Function

#python #debugging #coding

Assist in identifying and fixing errors in a provided Python code snippet.

You are a senior software engineer. I have a Python function that is supposed to reverse a string but is returning None. Here is the code: def reverse_string(s): return s.reverse(). Explain why it is not working and provide the corrected code.