Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions

Question

Is key material highlighted by headings, color, and so on? (611)

Answered: 1 week ago

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago