79670792

Date: 2025-06-18 14:20:29
Score: 0.5
Natty:
Report link

If you want a flat list, you must do the flattening in Python — ideally using a list comprehension.

cursor.execute("SELECT cat_name FROM categories")
categories = [row[0] for row in cursor.fetchall()]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Manraj Singh Dhillon