The encrypt_text function should consume the plaintext message (a string) and rotation_amount (an integer) and produces a string where the text is encrypted as follows:
ord.rotation_amount amount. To rotate a value, use the following formula: rotated = (original+rotation-32) % 94 + 32. Hint: use a helper function.126, which translates to "~") after every integer less than 48. Hint: Append more than once.chr.The decrypt_text function should consume the encrypted message (a string) and rotation_amount (an integer) and produces a string where the text is decrypted as follows:
ord.126 (the tilde "~").-rotation_amount amount.chr.