From conditionId input field i am getting comma separated string eg 'Test1','Test2','Test3' below is the code for that i want to split that string and access individual value using for loop
ConditionId =str(request.POST.getlist("ConditionId"))
ConditionIdArray = [n for n in ConditionId[1:-1].split(',')]
for i in range(0,len(ConditionIdArray)):
print(ConditionIdArray[i])
In print statement it giving me output as
'Test1'
'Test2'
'Test3'
but i want output as
Test1
Test2
Test3
Because when i am storing data in database it stored as 'Test1' not as normal Test1