🏠 Inicio
Pruebas de rendimiento
📊 Todos los benchmarks 🦖 Dinosaurio v1 🦖 Dinosaurio v2 ✅ Aplicaciones To-Do List 🎨 Páginas libres creativas 🎯 FSACB - Showcase definitivo 🌍 Benchmark de traducción
Modelos
🏆 Top 10 modelos 🆓 Modelos gratuitos 📋 Todos los modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de prompts 📖 Glosario de IA 🔗 Enlaces útiles
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.