An acronym is formed by taking the first letters of the words in a phrase and making a word from them. For example, RAM is an acronym for "random access memory."
Write a function convert(string)
that takes a string as a parameter and then returns the acronym formed by the words in that string. Then write the program acronym.py
that allows the user to type in a phrase, calls the convert()
function for that string, and prints out the result.
Note: the acronym should be all uppercase, even if the words in the phrase are not capitalized.