106k views
0 votes
Which line of code will display the variable rounded to the nearest tenth?

print(num, round)
print(round(num, 1))
print(num rounded)
print(round(num,.1))

2 Answers

9 votes

Answer:

D

Step-by-step explanation:

User Pankaj Kapare
by
6.6k points
13 votes

Answer:

print(round(num, 1))

User Nathan Chase
by
7.0k points