Question
I want someone to help with this code I created the first part but still have mistakes so I want to create cipher that 1-
I want someone to help with this code I created the first part but still have mistakes
so I want to create cipher that 1- convert letter into capitals
2- shift letter ASCII two to the right except Y and Z
3- reverse the words
Don't add new words or change the position of the word then decrypt the function
Question = input ("what do you want to crept? ")
A = Question.upper()
def code(): m = '' for c in A: if c.isalpha() and c != "Y" and c != "Z": m += chr(ord(c) + 2) else: m += c
def reverse(): """ retuns the letters of the string flipped backword after shifting the letter two steps foward from the previous function >>> reverse("hello") 'QNNGJ' >>> reverse("I don't like you") "WQY GMKN V'PQF K" >>> reverse("wyz 76") '67 ZYY' """ s = '' for t in code(): s = ch + s return s
reverse()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started