I have textfile as
01,Jay,Sharma
02,Rushi,Patel
I want to read this textfile as array and want output as
student no : 01
Name : Jay
Surname : Sharma
student no : 02
Name : Rushi
Surname : Patel
Actually I am new with the Python I able to read it as array but I want exact output ,Please can anyone help me.
class RowReader:
def fileRead(self,filepath):
textfile = open(filepath, 'r')
data = []
for line in textfile:
row_data = line.strip("\n").split(',')
print(row_data)
file = RowReader()
file.fileRead(file_path)
Thank you in advance