Computer Science, asked by rufinasainos1234, 10 months ago

Write a loop to store the letters "f" through "w" in an array named letters. Then, print the contents of the array to the screen.

Sample Run
['f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']

Answers

Answered by guimcasadella
6

Answer:

Hey, there's the solution in python. Ask any question you have.

Explanation:

import string

lc = string.ascii_lowercase

letters = list()

for l in lc[lc.index("f"):lc.index("w")+1]:

   letters.append(l)

print(letters)

Similar questions