Question: Im trying to run this Data function, I keep getting this error: TypeError: 'list' object is not callable. If someone can help me figure out

Im trying to run this Data function, I keep getting this error: TypeError: 'list' object is not callable. If someone can help me figure out what is the problem and what to change,

that would be helpful thanks

header ={}

def Data():

for heading inData[1:]:

splitting = heading.split(': ')

if len(splitting)>1 :

header = {splitting[0]:splitting[1] }

header.update(header)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!