diff --git a/website/app/templates/index.html b/website/app/templates/index.html index d2460b84c..cb6798bbb 100644 --- a/website/app/templates/index.html +++ b/website/app/templates/index.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% block content %}

Math

average

+{% block content %}

Math

average

Already implemented via statistics.mean. statistics.mean takes an array as an argument whereas this function takes variadic arguments.

Returns the average of two or more numbers.

Takes the sum of all the args and divides it by len(args). The secind argument 0.0 in sum is to handle floating point division in python2.

@@ -302,7 +302,7 @@ count_vowels('gym') # 0
def byte_size(string):
     return(len(string.encode('utf-8')))
-
byte_size('😀') # 4
+
byte_size('😀') # 4
 byte_size('Hello World') # 11