Question: PYTHON PROGRAM Choice of appropriate data structure is an important step in designing algorithms. Suppose a text file contains student records on each line and

PYTHON PROGRAM

Choice of appropriate data structure is an important step in designing algorithms. Suppose a text file contains student records on each line and each record is of the format: Name of Student, Student ID, GPA. Now consider reading that file to create a list of lists, a list of tuples or a tuple of tuples. (a) If you want to create a report using the data, what data structure would you use? (b) If you want to modify the name, id or GPA, what data structure would you use?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!