Python
Program 1:
Write
a program that takes user input in the form of a string
Break
up the string into a list of characters
Store
the characters in a dictionary
The
key of the dictionary is the character
The
value of the dictionary is the count of times the letter
appears
Hint:
remember to initialize each key before using
Output
of program is the count of each character/letter
Sort
the output by key (which is the character)
Python
Program 2:
Write
a program that takes user input in the form a string
Break
up the string into a list of characters
Store
the characters in set
Use
two sets to find the set of vowels in the user's string
Use
two sets to find the set of consonants in the user's string
Hint:
use a list of vowels and the intersection/difference
functions
Output
will be the set of vowels and set of consonants