def calc_name_num(str): s=0 for c in list(str.lower()): if c.isalpha(): s += ord(c)-96 else: continue print(s)