Created
October 1, 2014 18:37
-
-
Save mdshw5/57e7b823ba3a8c8651d8 to your computer and use it in GitHub Desktop.
assessment: python function definition
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
%% mean_of_list_of_ints(%%): | |
assert isinstance(%%, l) | |
assert all([type(n) is %% for n in l]) | |
length = len(l) | |
mean = sum(l) / length | |
%% mean | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment