Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function that takes, as an argument, a string, and returns a list of all of the unique letters in the string. If the
Write a function that takes, as an argument, a string, and returns a list of all of the unique letters in the string. If the string contains digits or punctuation, do not include those symbols in the list that is returned. Name this function getLetters(myString).
For example,
>>>getLetters(hello, world)
should return the list [h, e, l, o, w, r, d]. As another example,
>>>getLetters(123)should return the empty list, [].
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started