Formatting can maybe be applied to software works
Answer:
Check the explanation
Explanation:
print("************************************************************")
sentence = input("Enter a sentence : ").split()
replace_words = input("\nEnter the words that should be replaced : ").split()
special = input("\nEnter the replacing special Character : ")
result = []
for word in sentence:
if word not in replace_words:
result.append(word)
else:
result.append(special * len(word))
result = ' '.join(result)
print("\nThe Sentence with words censored is : " + result)
print("************************************************************")
Answer:
while(inFile >> intOne >> intTwo)
Explanation:
Options are missing but the line of code that does the illustration in the question is while(inFile >> intOne >> intTwo)
Considering two variables, intOne and intTwo
Suppose that a file location has been specified, the infile statement identifies file which could either be an external data or an in-stream data from which data should be read.
while(inFile >> intOne >> intTwo)
Declares a while loop, with the help of the inFile statement, values in the first column are entered into intOne while the second column are entered into intTwo through with the help of then input channel symbol (>>).