def safeOrd(char): val = ord(char) return valUnfortunately, this function will crash whenever the user passes values that are inappropriate for the ord function. Using try and except, modify this function so that if char causes an error, the function returns 0; otherwise, it returns val.