Just like the previous problem, finding the average is another action you will perform quite frequently while analysing the data. Given a list of integers, can you find the average and determine if the given number is above the list’s average or not?
Let us see Sajan turn the logic explained above into a piece of code.
You can try writing the same code using the reduce functionality? How many more ways can you think of?