Hi, I need help in changing this phyton code toDr. Racket.Please.
def encode(str1): str2 = str1.upper() ans = "" for i in range(len(str1)): if str2[i] >= 'A' and str2[i] <=>=> temp = chr(ord('Z') - ord(str2[i]) + ord('A')) ans+= temp + " " print(ans)
The prompt:
Example:
> (encode "Cat")"X Z G"> (encode "A")"Z"
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here