Page 2 - Home Assignment
P. 2

Home Assignment



               18. Consider a binary file Employee.dat containing details such as empno:ename:salary.
                   Write Python function to display details of those employees who are earning between
                   20000 and 40000 (both inclusive).
               19. A file sports.dat contains information in the following format: Event-Participant

                   Write a function that would read contents from file sports.dat and creates a file names
                   Atheletic.dat copying only those records from sports.dat where the event name is
                   ‘Athletics’.
               20. Write a Python function to read EMPLOYEE details(Eno, Ename, EDept, EDesg, Pay) from
                   a file EMPLOYEE.csv and display it.
               21. Write a Python function to write the read the above Employee details from a user and
                   write it into csv file EMPLOYEE.dat.
   1   2