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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!