Write a function that prints every other letter in a string.
Note: If the answer assumes that the string only contains letters, an answer might look like the below.
```
def everyOther(source):
for index in range(0, len(source)):
if index%2==0:
print source[index]
```
Note: Otherwise, the answer needs to check if a character is a letter before printing it.
```
def everyOther2(source):
letterIndex= 0
for index in range(0, len(source)):
if source[index].isalpha():
if letterIndex%2==0:
print source[index]
letterIndex=letterIndex+1
```
You might also like to view...
MC The__________ is not a primary class defined by Python.
a) SystemYield. b) StopIteration. c) Warning. d) StandardError.
When you point to some labels on the options bar, a ____ that looks like a pointing finger appears.
a. context b. scrubby slider c. grid guide d. brush
In an Earned Value table, positive variance indicates that you are over budget.
Answer the following statement true (T) or false (F)
What is a garbage value in the C# programming language?
A. It is an unknown, unassigned value. B. It is a variable that is assigned a value that has no purpose. C. It is a variable that is used as a placeholder. D. It is a variable that holds output text after it is displayed.