Complete the function that accepts a valid string and returns an integer.

Wait, that would be too easy! Every character of the string should be converted to the hex value of its ascii code, then the result should be the sum of the numbers in the hex strings (ignore letters).

## Examples
```
"Yo" ==> "59 6f" ==> 5 + 9 + 6 = 20
"Hello, World!"  ==> 91
"Forty4Three"    ==> 113
```

Difficulty: introductory

Starter code:

def hex_hash(code):
	

Solutions:
def hex_hash(code):
    return sum(int(d) for c in code for d in hex(ord(c)) if d.isdigit())

def hex_hash(s):
    return sum(sum(int(c) for c in hex(ord(c))[2:] if c in "0123456789") for c in s)

def hex_hash(code):
    first = ''
    for i in code :
        first += hex(ord(i))[2:]
    second = ''
    for i  in first :
        if i.isdigit() :
            second += i
    last = 0
    for i in second:
        last += int(i)
    return last

def hex_hash(code):
    return sum(int(d) for c in code for d in f"{ord(c):x}" if d.isdecimal())


def hex_hash(code):
    return sum(sum(int(d) for d in hex(ord(c)) if d.isdigit()) for c in code)

def hex_hash(code):
    return sum( int(d) for d in ''.join(map(hex, map(ord, code))) if d.isdigit() )

def hex_hash(code):
    return sum( int(d) for d in ''.join(hex(ord(c)) for c in code) if d.isdigit() )

def hex_hash(code):
    r=0
    for c in code:
        for d in hex(ord(c))[2:]:
            if d.isdigit():
                r+=int(d)
    return r

def hex_hash(code):
    res=''.join(list(map(hex, map(ord,code))))
    return sum(int(x) for x in res if x.isdigit())

from re import sub
def hex_hash(code):
    return sum(sum(map(int,sub("[^0-9]","",hex(ord(c))))) for c in code)