0
HELP : How can I [â0.3â, â10**2â] ==> [0.3, 10**2]
n = ['1' , '-2' ,'0.3' ,'10**2'] I want to change to thisââ m = [1, -2, 0.3, 10**2]
3 Antworten
+ 1
for i in n:
i = int(i)
0
Itâs going to be error when i is â0.3â and â10**2â
0
Dangerous one:
for i in n:
i = exec(i)