Overview:
- The function fsum() returns the accurate sum of multiple floating point numbers in an iterable.
Example:
|
# Example Python program that sums up the daily maximum temperature # A list containing maximum temp for 5 days # Sum-up the values to find the mean temp print("Sum of 5-day maximum temperature:") print("Average maximum temperature:") |
Output:
|
Sum of 5-day maximum temperature: |