title: SQLite3 not working in Python. [<sqlite3.Cursor object at 0x7f33b6b23030>]
body: <p>I want to get all the rows from a table in SQLite3 but when I try to do that, all I get is this error. I am using Python 3.9.9 on Arch Linux</p>
  <pre><code>[&lt;sqlite3.Cursor object at 0x7f33b6b23030&gt;]
  </code></pre>
  <p>The code I wrote to read the data is below</p>
  <pre><code>def readData() :
  global data
  global list1
  list1 = []
  data = cursor.execute('''SELECT * FROM people''')
  for row in data:
      list1.append(data)
  print(list1)
  </code></pre>
  <p>I have a doubt that line 5 is causing the problem</p>
  <pre><code>data = cursor.execute('''SELECT * FROM people''')
  </code></pre>
  <p>Thanks!</p>