P7. Write a program segment that reads a text file named original_text, and writes every other line, starting with the…

P7. Write a program segment that reads a text file named original_text, and writes every other line, starting with the first line, to a new file named half_text.