You are on page 1of 1

QUES) A file containing data about a collection of students has the following format.

Each line contains a first name, a second name, a registration number, no of years
and a department separated by tabs.
Rajat Sen 12345 1 CSEE
Jagat Narain 13467 3 CSEE
Anu Sharma 11756 2 Biology
Sumita Trikha 23451 4 Biology
Sumder Kumra 11234 3 MME
Kanti Bhushan 23211 3 CSEE
a) Write a Python program that will copy the contents of the file into a list of tuples
b) Display full details of the student sorted by registration number
  · The names of all students with no of year less than 3
  · The number of people in each department

You might also like