How to convert a list of floats to a list of strings in Python

1 Answer

0 votes
lst_float = [7.56983, 3.817, 2.981, 5.9001]

lst_string = [str(item) for item in lst_float]

print(lst_string) 







'''
run:
 
['7.56983', '3.817', '2.981', '5.9001']
 
'''

 



answered Jul 15, 2022 by avibootz

Related questions

4 answers 262 views
2 answers 130 views
1 answer 166 views
2 answers 222 views
1 answer 111 views
...