import MySQLdb

def listar_todos():
    conexao = MySQLdb.connect(host='mysql.topskills.study', database='topskills01', user='topskills01', passwd='<PASSWORD>')
    cursor = conexao.cursor()
    comando_sql_select = "SELECT * FROM 01_MDG_ENDERECO"
    cursor.execute(comando_sql_select)
    resultado = cursor.fetchall()
    return resultado
import MySQLdb

def listar_todos():
    conexao = MySQLdb.connect(host='mysql.topskills.study', database='topskills01', user='topskills01', passwd='<PASSWORD>')
    cursor = conexao.cursor()
    comando_sql_select = "SELECT * FROM 01_MDG_ENDERECO"
    cursor.execute(comando_sql_select)
    resultado = cursor.fetchall()
    return resultado