Skip to content

Instantly share code, notes, and snippets.

Avatar

isaiah isaiah-perumalla

View GitHub Profile
@isaiah-perumalla
isaiah-perumalla / functions.py
Last active Nov 26, 2019
some python functions
View functions.py
def calc_avg(items):
if not items:
return 0
total = sum(items)
return float(total)/len(items)
def std_deviation(items):
if not items: return 0
mean = calc_avg(items)