Answer:
Explanation:
The following code is written in Python. It is a loop that asks the user for an input. If it contains a comma then it removes whitespace, splits it into two words, and prints each word seperately, and exits the loop. If it does not contain a comma then it prompts the user for another input.
while True:
string = input("Enter input string: ")
if ',' in string:
string = string.replace(" ", '')
string_split = string.split(',')
print("First word: " + string_split[0])
print("Second word: " + string_split[1])
break