Question: I need a solution for my programming lab in python code A file named data.txt contains an unknown number of lines, each consisting of a
A file named data.txt contains an unknown number of lines, each consisting of a single integer. Write some code that creates two files, dataplus.bxt and dataminus.txt, and copies all the lines of data 1.txt that have positive integers to dataplus.txt, and all the lines of data1.txt that have negative integers to dataminus.txt. Zeros are not copied anywhere
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
