Python | fsum() function
fsum() is inbuilt function in Python, used to find sum between some range or an iterable. To use this function we need to import the math library.
maths.fsum( iterable )
iterable : Here we pass some value which is iterable like arrays, list.
fsum() is used to find the sum of some range, array , list.
Return Type :
The function return a floating point number.
Code demonstrating fsum() :
45.0 11.0 7.99