Change the encode function so that punctuation is simply skipped.
What will be an ideal response?
```
def encode(string,keyletters):
alpha="abcdefghijklmnopqrstuvwxyz" secret = ""
for letter in string:
if not letter.lower() in ",.?:;-_'!":
index = alpha.find(letter)
secret = secret+keyletters[index]
print secret
```
Note: This code does not skip spaces, but one could add a space to the check against string to accomplish that.
You might also like to view...
Double encryption in a public key system can provide
a. only confidentiality b. only identity verification c. both confidentiality and identity verification d. none of the above
________ was launched in 2004 for Harvard students
Fill in the blank(s) with correct word
To determine a video's frame width and height, a general rule of thumb is to use multiples of which of the following?
A. 4 B. 8 C. 16 D. 32
?Businesses started adopting Internet Explorer more than 20 years ago simply to view webpages. Today, Microsoft Edge has a different purpose: __________.
Fill in the blank(s) with the appropriate word(s).