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
Get step-by-step solutions from verified subject matter experts
