language: Python 3.7.0 mysql-connector-python==8.0.31
I'm working on a website and have just implemented a database. The response I'm getting from the database looks like this:
[('indigo', 'admin')]
How do I extract the two values from the tuple in a list and convert it to a list only?
Expected output:
["indigo", "admin"]
Thanks,
indigo