Challenge 13

🔠

Letters Between

Open in Code Editor or Copy Instructions
...solutions at bottom of page...

Write a function to return the a comma-separated string containing letters between a starting and ending letter inclusive.

Examples:

For example, a starting letter of 'C' and ending letter of 'I' would return "C, D, E, F, G, H, I"

The inputs 'Z' and 'W' should also work, returning "Z, Y, X, W"

To keep things simple, the program only has to work for uppercase letters - keep asking the user to enter a new character if they don't enter an uppercase letter

Extension:

Have the program work between for lowercase and any other letters - that could include emojis like 🧑‍🚀 and 🍎

Solutions

A-Level 9618