Bring a table to named tuple!

Report a typo

Below you can see a list of students. Make a named tuple 'Student' with the fields 'name', 'age', and 'department' for each of them using the data from the table. Then print the three named tuples one after another, each in a new line. Please write the age as a string.

name age department
1 Alina 22 linguistics
2 Alex 25 programming
3 Kate 19 art
Write a program in Python 3
from collections import namedtuple
___

Create a free account to access the full topic