Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given a list of employees, defined as employees in the cell below, write python code to perform the following: For all male employees, print the

Given a list of employees, defined as employees in the cell below, write python code to perform the following:
For all male employees, print the employee_id on one line and on another line print their names formatted as lastname, firstname. A blank line should be printed between successive employees
employees = [
   { "email": "jonathan2532.calderon@g.com",
        "employee_id": 101,
        "firstname": "Jonathan",
        "lastname": "Calderon",
        "title": "Mr",
        "work_phone": "(02) 3691 5845"},
    { "email": "christopher8710.hansen@g.com",
        "employee_id": 102,
        "firstname": "Christopher",
        "lastname": "Hansen",
        "title": "Mr",
        "work_phone": "(02) 5807 8580"},
    {"email": "isabella4643.dorsey@g.com",
        "employee_id": 103,
        "firstname": "Isabella",
        "lastname": "Dorsey",
        "title": "Mrs",
        "work_phone": "(02) 6375 1060"},
    {"email": "barbara1937.baker@g.com",
        "employee_id": 104,
        "firstname": "Barbara",
        "lastname": "Baker",
        "title": "Ms",
        "work_phone": "(03) 5729 4873"}]

Step by Step Solution

3.34 Rating (151 Votes )

There are 3 Steps involved in it

Step: 1

Code to print the Mail employ in python is as follow employees emai... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistics For Business And Economics

Authors: Paul Newbold, William Carlson, Betty Thorne

8th Edition

0132745658, 978-0132745659

More Books

Students also viewed these Programming questions

Question

Solve: [1+ log (xy)] dx + [ 1 + x/y ]dy = 0.

Answered: 1 week ago

Question

What is the confidence level associated with a confidence interval?

Answered: 1 week ago