Create a program that reads data from a file and writes it to another file in a different format.
with open("input.txt", "r") as input_file:
data = input_file.readlines()
processed_data = [line.strip().upper() for line in data]
with open("output.txt", "w") as output_file:
for line in processed_data:
output_file.write(line + "\n")
print("Data has been successfully written to output.txt")
GUYS IF YOU HAVE ANY DOUBT. PLEASE LET ME KNOW