Play With Words and Letters

project #1

Reverse the order of words in a string. Create and interactive program that ...

  1. ask the user to enter a text string
  2. if no string was entered, exit
  3. create a new string with the words in reverse order
  4. display the input string and the reversed string
  5. display the object ID's of the two strings
  6. loop

Questions

project #2

Count the unique words in a string. Create and interactive program that ...

  1. ask the user to enter a text string
  2. if no string was entered, exit
  3. process the string counting the number unique words in the string
  4. display the input string and the word counts
  5. loop

Question: is a capitalized word the same as an uncapitalized word?

Hint: use a Python dictionary?

project #3

Count the unique letters in a string. Create and interactive program that ...

  1. ask the user to enter a text string
  2. if no string was entered, exit
  3. process the string counting the number of unique letters in the string
  4. display the input string and the letter counts
  5. loop

Question:

How do you find the letters not in a string? (only ASCII characters/letters?)