First time here? Check out the FAQ!
answered 2020-10-16 16:36:23 +0100
Indeed if line = f.readline then line.split(delimiter) does not work, because in this case line is not a string but a method, so you cannot call split on it.
line = f.readline
line.split(delimiter)
line
split
You meant line = f.readline().
line = f.readline()