Rewriting for-loops in a pythonic way
I pick up where I left last time, with the second problem of Day 0 in the 10 Days of Statistics. Problem 2 Given an array, , of integers and an array, , representing the respective weights of ‘s elements, calculate and print the weighted mean of ‘s elements. Your answer should be rounded to …