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
```

Computer Science & Information Technology

You might also like to view...

What is the purpose of the SELECT SQL statement? p.000?

What will be an ideal response?

Computer Science & Information Technology

Tables are a good source for data in a lookup field

Indicate whether the statement is true or false

Computer Science & Information Technology