Write a Python program to calculate the sum of the numerical values of each character of a string
string = 'program'
def sumCharValues(string):
    sum = 0
    for ch in string:
        sum += ord(ch)
    return sum