Saturday, October 27, 2018

Maximum / Minimum / Average with python

Programming help us to solve problem. Sometimes, we do need statistics to help us making decision.

For instance, we would like to decide which age range of customers prefer books, games or clothes.
We may also need statistics to show our sales, how popular is our movie produce, how is the  customers response to our food and etc.

It helps us to analyze large data sets. There are functions help us to do job easier and faster. But how?

According to the following example, we use max() , min(), function to get the maximum or minimum number. In order to get the average, do use a for loop to sum up the value and calculate the average

I use .rstrip() to trim the empty string of the input string. 

Please do refer to the link below for example.

dishin problem

No comments:

Post a Comment

Superior of partial fraction

What is complex fraction? Complex fraction is a fraction whereby its numerator or denominator or both consists of fractions. Partial frac...