1. Engineering
  2. Computer Science
  3. write a python function names readdepthcapacitys that takes a string...

Question: write a python function names readdepthcapacitys that takes a string...

Question details

Write a python function names readDepthCapacity(s) that takes a string s corresponding to a filename and returns a dictionary where the key value pairs are {'depth' : integer}. The key string is from another function readStdnts (’civil’, ’chemical’, ’electrical’, ’mechanical’, ’software’, ’materials’, ’engphys’) and the value is the capacity of the department.That is the number of slots avaliable in each department for student positions. The information needed is in the text file that corresponds to the name given by the argument s.

Refer to this question for more information: https://www.Zookal.com/homework-help/questions-and-answers/write-python-module-called-readallocationdatapy-define-following-functions-1-readstdnts-s--q34275650

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution