Change the encode function so that spaces are 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
```
You might also like to view...
In a transition called a ____, the camera instantaneously jumps from the end of one scene to the beginning of the next scene.
A. segue B. cut C. sweep D. join
A(n) _____________ is a program that simultaneously translates and executes each instruction in a high-level language program.
a. compiler b. interpreter c. assembler d. lexical analyzer
Which of the following statements draws an arc that sweeps from the top of an oval to the leftmost edge?
a. g.drawArc(200, 100, 100, 50, 90, 90); b. g.drawArc(100, 200, 50, 100, 90, 180); c. g.drawArc(100, 200, 50, 100, 180, 90); d. g.drawArc(200, 100, 100, 50, 180, 90);
If the Internet consisted of four computers, there would be six possible connections. If it consisted of five computers, there would be ten possible connections. How many connections are possible with ten computers?
a. 10 b. 30 c. 45 d. infinite