Q60.Consider the following pseudocode, where `D` is a dictionary. Choose a statement regarding `D` such that `sum` will always store a value greater than 0 at the end of execution.
```
sum = 0
foreach key in keys(D) {
sum = sum + first(D[key])
}
```
Save
Check
Details
Q60
20 Nov 2022
Q60.Consider the following pseudocode, where `D` is a dictionary. Choose a statement regarding `D` such that `sum` will always store a value greater than 0 at the end of execution.
```
sum = 0
foreach key in keys(D) {
sum = sum + first(D[key])
}
```