Skip to content

Instantly share code, notes, and snippets.

@mdshw5
Created October 1, 2014 18:37
Show Gist options
  • Save mdshw5/57e7b823ba3a8c8651d8 to your computer and use it in GitHub Desktop.
Save mdshw5/57e7b823ba3a8c8651d8 to your computer and use it in GitHub Desktop.
assessment: python function definition
%% 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