Skip to main content
Solved

calculate average with for loop

  • February 20, 2020
  • 2 replies
  • 14 views

Forum|alt.badge.img

Hello!

I have point next to each other with a slope value between two neighbor points. Now I want to average these values with a loop, like:

for n in range(num):
    numbers = float(input('Enter number : '))
    total_sum += numbersavg = total_sum/num

Can you help me to put it in practice with FME

Best answer by ebygomm

Why not use the cumulative port on the Statistics Calculator?

View original
Did this help you find an answer to your question?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • February 20, 2020

Why not use the cumulative port on the Statistics Calculator?


Forum|alt.badge.img
  • Author
  • February 20, 2020
ebygomm wrote:

Why not use the cumulative port on the Statistics Calculator?

Oh, thanks! I was sooo narrow-minded with python :)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings