Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python round and map function

my_list = [2.6743,3.63526,4.2325,5.9687967,6.3265,7.6988,8.232,9.6907]
updated_list = map(round, my_list)
print(updated_list)
print(list(updated_list))
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #python #map #function
ADD COMMENT
Topic
Name
3+5 =