0
Need help for my school assignment (string manipulation)
QUESTIoN: Write a sentence with at least eight words, and assign it to a variable. This will be the text your program works on. Create a string with every letter that appears at least twice in the sentence. The letters should be in the order of their first appearance in the sentence. Each letter can appear only once in the string. All letters should be in lowercase. Print the original sentence to the screen, and then the string of letters. Example: Input: Democracy is the worst form of government, except for all the others. Output: emocrasthfnl My code:Help for school (by Eric Wang)
4 ответов