Andrew K.

asked • 05/15/21

FP_Lab7........

Use the following file as input:  Track.txt 

open file information. When writing the open statement for both files add this to the statement(see in red)

open("Name of your file", "r", encoding="utf8")

Your program criteria are

All rows that have TrackID of even and Albumid of even are written to one file.

All rows that have TrackID of odd and Albumid of odd are written to one file.

Your output should contain all the elements in the rows that fit the above criteria.

All output should be written to the output file in your program. In this case, you will have two output files.

Note: the first row in the input file is the file header which indicates the column names for the data.


1 Expert Answer

By:

Anthony B. answered • 10/16/23

Tutor
New to Wyzant

Software Engineer, Python/Java/Javascript with AI Background

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.