selectedTeam = str(self.comboBox_2.currentText())
sql2="select Players from TeamFormed where Name='"+selectedTeam+"';"
curt=Teams.cursor()
curt.execute(sql2)
players=curt.fetchone()
#Just to check the type length and contents
print(type(players))
print(players)
print(len(players))
ast.literal_eval(players[0])
#Just to check the type length and contents
print(type(players))
print(players)
print(len(players))
I have a tuple like this
("['Virat Kohli', 'A B de villiers', 'K L Rahul', 'Aron Finch', 'Glenn Maxwell', 'Suresh Raina', 'Shikhar Dhawan', 'Rohit Sharma', 'B Kumar', 'James Anderson', 'M Shami', 'Jasprit Bumrah']",)
which produced after fetching data from database. Length of this tuple is showing 1. I want to convert this to a list of length 12.