Question: this code is throwing an error - - - - - - - - - - - - - - - - - - -
this code is throwing an error
ValueError Traceback most recent call last
Cell In line
if namemain:
filename MDatatxt
patientdatalist parsepatientdatafilename
filteredpatientids filterpatientdatapatientdatalist
printUnique IDs of patients with age less than and diagnosis TRUE:"
Cell In line in parsepatientdatafilename
for line in file:
values line.stripsplit
diagnosis, age, gender, chestpaintype, restingbloodpressure, serumcholesterol values
patient PatientDatadiagnosis intage gender, chestpaintype, intrestingbloodpressure intserumcholesterol
patientdatalist.appendpatient
ValueError: not enough values to unpack expected got
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
