Published
- 1 min read
round python with list
The solution for this is noted below
round python with list
Solution
a_list = [1.234, 2.345, 3.45, 1.45]
round_to_whole = [round(num) for num in a_list]
print(round_to_whole)
Try other methods by searching on the site. That is if this doesn’t work