From 37c9f8f20b44a4fe3a955f3d365a6ff5a46c09d6 Mon Sep 17 00:00:00 2001 From: sahilk1234 <49304308+sahilk1234@users.noreply.github.com> Date: Thu, 31 Oct 2019 17:25:57 +0530 Subject: [PATCH] Update mysteryscore.py --- mysteryscore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysteryscore.py b/mysteryscore.py index 1b5757c..b900a82 100644 --- a/mysteryscore.py +++ b/mysteryscore.py @@ -1,12 +1,12 @@ import datetime #This is the my mystery function that will give a score to each string -def mystery_score(mystr): +def mystery_score(mystring): # z is the highest character we want - totalScore = ord("z") charsum = 1 - for ch in mystr: + for ch in mystring: charsum += ord(ch) return charsum/totalScore