Round
The round() function returns a number rounded to the nearest whole number or to a set number of decimal places. The round function takes two parameters, which means it needs two bits of information in order to work correctly.
round(number_to_be_rounded, number_of_decimal_places)
Example Code Snippet
print(round(3.14159, 2) # Output: 3.14