# Q1: How many employees does the city have? import helper data = helper.read_salaries() # will read the data city_employees = len(data) #counts length of data print(city_employees) #33,183 city_employees
# Q3: How many part-time employees are there? import helper data = helper.read_salaries() employee_type = helper.get_column(data, 4) # get employee type (full or part-time) print(helper.count(employee_type, 'P')) # print full-time count
# Q1: How many employees does the city have? import helper #import module data = helper.read_salaries() #read the data employee_count = len(data) #count the length of the data print(employee_count) #print out the data length