I have a hybird type list:
A=[0, '0,1', 0, '0,1', '0,1', '0,1', '0,1', 0]
want to change all to str, but I try
for i in A:
if type(i) == int:
str(i)
print(type(i))
and get nothing change about those type
<class 'int'>
<class 'str'>
<class 'int'>
<class 'str'>
<class 'str'>
<class 'str'>
<class 'str'>
<class 'int'>