subject

Write two methods: encrypt and decrypt. encrypt should #take as input a string, and return an encrypted version #of it according to the rules above. # #to encrypt the string, you would: # # - convert the string to uppercase. # - replace all js with is. # - remove all non-letter characters. # - add an x to the end if the length if odd. # - break the string into character pairs. # - replace the second letter of any same-character # pair with x (e. g. ll -> lx). # - encrypt it. # #decrypt should, in turn, take as input a string and #return the unencrypted version, just undoing the last #step. you don't need to worry about js and is, duplicate #letters, or odd numbers of characters in decrypt. # #for example: # # encrypt("ps. hello, world") -> "qlgrqtvzibtyqz" # decrypt("qlgrqtvzibtyqz") -> "pshelxoworldsx" # #hint: you might find it easier if you implement some # functions, like a find_letter function that #returns the row and column of a letter in the cipher.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:31
Selling a product through an electronic medium is
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
You know the right answer?
Write two methods: encrypt and decrypt. encrypt should #take as input a string, and return an encry...
Questions
Questions on the website: 13722361