I have the `par` value for each hole on a golf course and my stroke `score` on each hole. I have them stored as strings, because I wrote them down on a sheet of paper.  Right now, I'm using those strings to calculate my golf score by hand: take the difference between my actual `score` and the `par` of the hole, and add up the results for all 18 holes.

For example:
* If I took 7 shots on a hole where the par was 5, my score would be: 7 - 5 = 2
* If I got a hole-in-one where the par was 4, my score would be: 1 - 4 = -3.

Doing all this math by hand is really hard! Can you help make my life easier?


## Task Overview

Complete the function which accepts two strings and calculates the golf score of a game. Both strings will be of length 18, and each character in the string will be a number between 1 and 9 inclusive.

Difficulty: introductory

Starter code:

def golf_score_calculator(par_string, score_string):
	

Solutions:
def golf_score_calculator(par, score):
    return sum(int(b) - int(a) for a, b in zip(par, score))

def golf_score_calculator(p, s):
    return sum([int(s[i])-int(p[i]) for i in range(len(p))])

def golf_score_calculator(par, score):
    return sum(map(int, score)) - sum(map(int, par))

def golf_score_calculator(*par_score):
    return sum(int(b)-int(a) for a,b in zip(*par_score) )

def golf_score_calculator(par_string, score_string):
    
    return sum(map(int,list(score_string))) - sum(map(int,list(par_string)))

def digitsum(x):
    total = 0
    for letter in str(x):
        total += ord(letter)-48
    return total


def golf_score_calculator(par, score):
    return digitsum(score) - digitsum(par)


def golf_score_calculator(par_string, score_string):
    score = 0
    for i in range(0,18):
        score -= int(par_string[i]) - int(score_string[i])
    return score

def golf_score_calculator(par_string, score_string):
    # Convert each string into a list of integers
    par_list = list(map(int, par_string))
    score_list = list(map(int, score_string))
    
    # Use a for loop thru both lists to calculate difference for each hole
    differences = [i-j for i,j in zip(score_list, par_list)]
    
    # Summate all values in differences list for score
    return sum(differences)
    pass

def golf_score_calculator(par_stg, score_stg):
    return sum((int(s) - int(p)) for (s, p) in zip(score_stg, par_stg))

def golf_score_calculator(par_string, score_string):
    return sum(b-a for a,b in zip(map(int, par_string), map(int, score_string)))