''' Soren DeOrlow IDSN 599, Fall 2021 deorlow@usc.edu Lab practical 3 ''' while True: censoredList = list() submittedContent = input( "Enter a sentence and we will screen it to ensure no censored words are being used: ").strip() if submittedContent != "": results = submittedContent.split(" ") for i in range(len(results)): if results[i].lower() in ['dren', 'frak', 'frel', 'glob', 'grud', 'narf', 'zark']: censoredList.append('BEEP') else: censoredList.append(results[i]) censoredContent = " ".join(censoredList) print(censoredContent + ".") continue break