From b5aac5e57500e2a33d43f761fd5012eee85d4395 Mon Sep 17 00:00:00 2001 From: Rohit Tanwar Date: Sun, 18 Feb 2018 07:24:13 +0000 Subject: [PATCH] Travis build: 868 --- website/app/templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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