Question: This is python3 and using visual studio code. An acronym is a word formed by taking the first letters of the words in a phrase
This is python3 and using visual studio code.
An acronym is a word 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 acronym () that takes one string as input and then returns the the acronym for that phrase. The acronym should be all uppercase, even if the words in the phrase are not capitalized. For example acronym("Random access memory") should return "RAM". Hint: don't forget to test strings with multiple spaces and spaces at the beginning. Reminder: you are not allowed to use anything we have not yet covered in class (e.g. lists and the string split() method)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
