How to find the sum of all dictionary values in Python

preview_player
Показать описание
Python program to find the sum of all dictionary values. I will show you two different ways to find the dictionary values sum.

#python #dictionary #learntocode
Рекомендации по теме
Комментарии
Автор

Can i sum just two values not the entire

sathish.d
Автор

help me please : user input numbers not adding within the list they're being appended only prints the last number

while True :

question = input("add number ?: ")
if question ! = "n":

list = [ ]
list.append(float(input("add number:")
for i in list:
i = sum(list)
print(i)

## thanks in advance

xpetrusx
Автор

JESUS CHRIST IS THE ONLY TRUE LIVING GOD
JESUS CHRIST IS THE ONLY WAY TO HEAVEN

Angelraaga