Created
February 1, 2016 16:26
-
-
Save ricardovsilva/d56511069a99d77408be to your computer and use it in GitHub Desktop.
Example to calculate average from list in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def calculate_average(verifide_notes): | |
float_list = map(float, verifide_notes) | |
average = sum(float_list)/float(len(float_list)) | |
return average |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment