Ask Your Question

Revision history [back]

This works:

sage: A = ['1.2', '2.565', '3.45']
sage: A = [float(a) for a in A]
sage: A
[1.2, 2.565, 3.45]