•  
      tasks #45167 Find the sum of all items in a dictionary
    #45167
    Ritish Singh (ritish31)
    2022-08-16 09:06
    2022-08-16 09:06
    Details
    Find the sum of all items in a dictionary
    sum() and values

    In this approach, we will be using a combination of the sum() method and values() method of the dictionary class.

    The sum() method will return the sum of all values in the dictionary. To get the values that are in the dictionary, we will be using the values() method. values() returns a list of all the values that are in the dictionary.
    5 - Medium
    State of Progress
    2022-05-16
    100
    2022-05-18
    Ritish Singh (ritish31)
    Rakesh Kumar Verma (rakesh.verma)
    2022-05-16
    Closed
    Attachments
    References
    References list is empty