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
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
English,
5 months ago
Computer Science,
5 months ago
Math,
5 months ago
Biology,
10 months ago
Social Sciences,
10 months ago
English,
1 year ago
Math,
1 year ago