Use the built-in functions abs()
, round()
, sqrt()
. A built-in function is
one that you don’t need to install and load a package to use. Use another
function, help()
, to learn how to use any of the functions that you don’t know
how to use appropriately. help()
takes one parameter, the name of the function
you want information about. E.g.,help(round)
.
round()
takes two
arguments, the number to be rounded and the number of decimal places.round()
will
default to using 0 if the second argument is not provided. Look at
help(round)
or ?round
to see how this is indicated.sqrt()
call inside the round()
call.