Sep-01-2017, 02:31 PM
(Aug-30-2017, 08:59 AM)Crackity Wrote: I was wondering though if there is a certain situation[s] where one option is preferred over the other?
"{}".format(arg)
is for formatting string and printing them. You'll receive a string when using itwhereas
round(number,ndigits)
is used to round off, it returns float which can further be used for calculations.