Question 2: Write a function that takes a string as its only argument and returns a sorted list of characters used in the string. The resulting list should only contain lower case letters and each...


Question 2:<br>Write a function that takes a string as its only argument and returns a sorted<br>list of characters used in the string. The resulting list should only contain<br>lower case letters and each letter should exist only once. Also, the resulting<br>list shouldn't contain any spaces or punctuation marks, such as

Extracted text: Question 2: Write a function that takes a string as its only argument and returns a sorted list of characters used in the string. The resulting list should only contain lower case letters and each letter should exist only once. Also, the resulting list shouldn't contain any spaces or punctuation marks, such as ",;.!?". For example, strletters ("We are, the Champions!") returns ['a', 'c', 'e', 'h', 'i', 'm', 'n', 'o', 'p', 'r', 's', 't', 'w'] def strletters(istr):

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here