Question: Write a Python Program Write a class named Employee that holds the following data about an employee in attributes: Name, Date of birth, Gender, ID

Write a Python Program

Write a class named Employee that holds the following data about an employee in attributes: Name, Date of birth, Gender, ID number, Department. Write a program that creates three Employee objects to hold the following data:

  • Name: 1. Sara Gaddis 2. John Jones 3. Alex Karen
  • Date of birth: 1. 09/06/1985 2. 12/12/1980 3. 02/07/1997
  • Gender: 1. Female 2.Male 3.Male
  • ID number: 1. 423543 2. 324980 3. 256987
  • Department: 1. IT 2. Accounting 3. Security

The program should store this data in the three objects, then display the data for each employee on the screen.

Hint: use the magic function to save your class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!