Error was occoured like below in python.
[1,2,3]*1e-6
TypeError: can't multiply sequence by non-int of type 'float'
How can I fix this?
Error was occoured like below in python.
[1,2,3]*1e-6
TypeError: can't multiply sequence by non-int of type 'float'
How can I fix this?
import numpy as np
ls=[1,2,3]
ls=np.array(ls)*1e-6
print(ls)
Hopefully this will work