python programming question:
How do you complete reading file data?
empdata - Notepad File Edit Format View Help Elc_main_ FullTimeEmployee 1 )90}9 (X0 _Employee_emp_nameq[XI AmyquXI _Employee_emp_addrqx- 100 W Campbell Road, Richardson, Texas, 75080q0XI _Employee_vehicleqlc_main_ Vehicle q0) q (XT Vehicle_makeq[XI Hondaq*XI Vehicle_modelq XI Civicq[XI _Vehicle_yearqIMPIXI _Vehicle_mileageq[MPAubXI _FullTimeEmployee_salaryq[Moreub. Elc_main_ FullTimeEmployee 1 )q0}q (X0 _Employee_emp_nameq[X] BobquXI _Employee_emp_addrqX- 200 W Campbell Road, Richardson, Texas, 75080qIxl _Employee_vehicleqlc_main_ Vehicle 90)q (XI _Vehicle_makeq[XI Toyotaq+XI _Vehicle_modelq IX CamryquXI _Vehicle_yearqiMUIXI _Vehicle_mileageqlM' eubxi _FullTimeEmployee_salaryq0JE80 ub. Elc_main_ FullTimeEmployee 1 )90}q (X0 _Employee_emp_nameq[XI EvanquXI _Employee_emp_addrqx- 300 W Campbell Road, Richardson, Texas, 75080q[XI _Employee_vehicleqlc_main_ Vehicle q0) q _Vehicle_makequXI BMWq+XI _Vehicle_modelq X X3quXI _Vehicle_yearq[MalXI _Vehicle_mileageq[MouubXI _FullTimeEmployee_salaryq0JAOf ub. Elc_main_ HourlyEmployee 1 )90}9 (X _Employee_emp_nameq[XI Graceq[XI _Employee_emp_addrqlx- 400 W Campbell Road, Richardson, Texas, 75080q0XI _Employee_vehicleqlc_main_ Vehicle q0) q _Vehicle_makequXI Kiaq+XI _Vehicle_modelq IX Rioq[X] _Vehicle_yearq[MOIXI _Vehicle_mileageq[JoI ubXI _HourlyEmployee_hours_wrkdqlk2X _HourlyEmployee_hourly_rateqlKlub. Elc_main_ Hour lyEmployee 9 ) 90} 9 (X0 _Employee_emp_namequixI Jamesq[XI _Employee_emp_addrq[x- 500 W Campbell Road, Richardson, Texas, 75080q[X_ _Employee_vehicleqlc_main_ Vehicle 90) q [X) _Vehicle_makeq[XI Mazdaq+XI _Vehicle_modelq XI Mazda3q[XI _Vehicle_yearq[MUIXI _Vehicle_mileageq0JE80 ubx _HourlyEmployee_hours_wrkdqlkX _HourlyEmployee_hourly_rateqlKlub. Elc_main_ Hour lyEmployee 1 )90}9 (X0 _Employee_emp_namequXI LunaquXI _Employee_emp_addrqlX- 600 W Campbell Road, Richardson, Texas, 75080q0XI _Employee_vehicleqlc_main_ Vehicle 90)q (XT Vehicle_makequXI Nissanq+XI _Vehicle_modelq SentraqXI _Vehicle_yearq[MOIXI _Vehicle_mileageqlJ q ubXI _HourlyEmployee_hours_wrkdqKIX _HourlyEmployee_hourly_rateq klub. Elc_main_ Consultant q )q0}q (XI Employee_emp_nameq[XI MichaelquXI _Employee_emp_addrqx- 700 W Campbell Road, Richardson, Texas, 75080q0XI _Employee_vehicleqlc_main_ Vehicle q0)q Vehicle_makequXI Fordq+XI _Vehicle_modelq XI RangerqOXI _Vehicle_yearq[MUDXI _Vehicle_mileageq0JE80 ubXI _Consultant_hours_wrkdqlk(XI _Consultant_project_typeq[Klub. Elc_main_ Consultant 1 )90}9 (X _Employee_emp_nameq[XI Tomq[XI _Employee_emp_addrqX- 800 W Campbell Road, Richardson, Texas, 75080q0XI _Employee_vehicleqlc_main_ Vehicle q0)q _Vehicle_makeq[x Mercedes -Benzq+XI Vehicle_modelq IX GLE350q[XI _Vehicle_yearqlMa[XI _Vehicle_mileageq[MOuubXI _Consultant_hours_wrkdqlk2XI _Consultant_project_typeqlk ub. Elc_main_ Consultant 9 )90}q (X0 Employee_emp_namequXI ZoeyquXI _Employee_emp_addrqx- 900 W Campbell Road, Richardson, Texas, 75080q0XI _Employee_vehicleqlc_main_ Vehicle q0)q (XI Vehicle_makeq[XI Teslaq+XI _Vehicle_modelq Model3q0XI _Vehicle_yearquMaxI _Vehicle_mileageq[M" : ubXI _Consultant_hours_wrkdqlkXI _Consultant_project_typeqlklub.[ ]: #complete this read file_data() function to prepare for the main menu application #this function is used to read information from an existing databse/binary file, which is empdata. dat #this function doesn't take argument(s) #this function returns a List containing all employee objects stored in the database; each employ object is an element in the list; #the List will also be used and updated later #need to handle exceptions if file doesn't exist import pickle def read file_data() : #type in your code [ ]: #do a quick test on the read file_data() function before moving forward (5 points) #don't change this code emp_list=read_file_data() print("There are {} employees stored in the database." . format (len(emp_list))) print("\ Below is the information of the first employee in the database: {}". format(emp_list)) print("\ {} is the first employee.". format (emp_list[0] . get_emp_name()))