1 | initial version |
Thanks for your answer!
The thing is that I actually want to use a list of measured values, so dings would not be a list of following integers (like range(1,5)), but some (real) numbers, for example dings = [1.2438, 1.2473, 1.2398] just with more than 3 numbers. So I do need to use a list in a sum context. I could write it with a for loop (and did, which worked), but I really want to use a sum. I mean, using a function in a sum should be possible?
2 | No.2 Revision |
Thanks for your answer!
The thing is that I actually want to use a list of measured values, so dings would not be a list of following integers (like range(1,5)), but some (real) numbers, for example
dings = [1.2438, 1.2473, 1.2398] just with more than 3 numbers. So I do need to use a list in a sum context.
I could write it with a for loop (and did, which worked), but I really want to use a sum.
I mean, using a function in a sum should be possible?sum.
3 | No.3 Revision |
[edit]My following answer is dumb due to not properly reading the first answer[/edit]
Thanks for your answer!
The thing is that I actually want to use a list of measured values, so dings would not be a list of following integers (like range(1,5)), but some (real) numbers, for example dings = [1.2438, 1.2473, 1.2398] just with more than 3 numbers. So I do need to use a list in a sum context. I could write it with a for loop (and did, which worked), but I really want to use a sum.