Question: HURRY NEED THIS PYTHON CODE WITH IN 40 MINS & CODE MUST BE RUN PROPER BLOCKS. IF YOU DO IT WITHIN THE TIME I WILL

HURRY NEED THIS PYTHON CODE WITH IN 40 MINS & CODE MUST BE RUN PROPER BLOCKS. IF YOU DO IT WITHIN THE TIME I WILL GIVE U AN UPVOTE FOR SURE. PLEASE HURRY. (NO COMMENT OR STEPS NEEDED JUST SEND ME THE CODE). I NEED TO COPY THE CODE SO SCREENSHOTS WONT HELP ME.

Question: 3 Implement the design of the Teacher class that inherit from Person class so that the following code generates the output below: Hint: Each office room has a capacity of 2. class Person: def __init__(self,name, nid): self.name = name self.nid = nid def info(self): print("Name:",self.name) print("NID:",self.student_id) # Write your code here: Teachers = [] P1 = Person("Fariha", 1357924680) P1.info() print("1.======================================") T1 = Teacher("Sabur",8346349712, 3515, "Math", "Physics") T2 = Teacher("Hamid", 8423657216, 9523,"Economics") T3 = Teacher("Rufaidah", 3578951236, 7236, "Math","Chemistry", "Biology", "Physics") T4 = Teacher("Rimon", 1930667892, 4228, "Physics") Teachers.extend([T1, T2, T3, T4]) print("2.======================================") for i in range(len(Teachers)): Teachers[i].info() print(f"{i+3}.======================================") print("Number of Teachers:", Teacher.teachers) OUTPUT: Name: Fariha NID: 1357924680 1.====================================== 2.====================================== Teacher's Details: Name: Sabur NID: 8346349712 Employee_ID: 3515 Subjects: Math, Physics Sabur will sit in office room no. 1. 3.====================================== Teacher's Details: Name: Hamid NID: 8423657216 Employes_ID: 9523 Courses: Economics Hamid will sit in office room no. 1. 4.====================================== Teacher's Details: Name: Rufaidah NID: 3578951236 Employee_ID: 7236 Subjects: Math, Chemistry, Biology, Physics Rufaidah will sit in office room no. 2. 5.====================================== Teacher's Details: Name: Rimon NID: 1930667892 Employee_ID: 4228 Subjects: Physics Rimon will sit in office room no. 2.. 6.====================================== Number of Teachers who joined: 4

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 Databases Questions!