|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "code",
|
5 |
| - "execution_count": 16, |
| 5 | + "execution_count": 18, |
6 | 6 | "metadata": {},
|
7 | 7 | "outputs": [
|
8 | 8 | {
|
9 |
| - "ename": "SyntaxError", |
10 |
| - "evalue": "invalid syntax (<ipython-input-16-e7a8f434ca87>, line 26)", |
11 |
| - "output_type": "error", |
12 |
| - "traceback": [ |
13 |
| - "\u001b[1;36m File \u001b[1;32m\"<ipython-input-16-e7a8f434ca87>\"\u001b[1;36m, line \u001b[1;32m26\u001b[0m\n\u001b[1;33m for x in self.employees\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n" |
| 9 | + "name": "stdout", |
| 10 | + "output_type": "stream", |
| 11 | + "text": [ |
| 12 | + "Developer Overring : Soumyadip Chowdhury [email protected] 700000 Python\n", |
| 13 | + "Developer Overring : Soumyadip Chowdhury [email protected] 900000 JAVA\n", |
| 14 | + "Manager Overring : Soumyadip Chowdhury [email protected] 700000 <__main__.Developer object at 0x000001EFA8D0BC08>\n" |
14 | 15 | ]
|
15 | 16 | }
|
16 | 17 | ],
|
|
40 | 41 | "class Manager(Employee):\n",
|
41 | 42 | " \n",
|
42 | 43 | " def print(self):\n",
|
43 |
| - " for x in self.employees \n", |
| 44 | + " for x in self.employees:\n", |
44 | 45 | " print(x)\n",
|
45 |
| - " return \"Manager Overring : {} {} {} {} {}\".format(self.first,self.last,self.email,self.pay,self.employees)\n", |
| 46 | + " print(\"Manager Overring : {} {} {} {} {}\".format(self.first,self.last,self.email,self.pay,self.employees)\n", |
46 | 47 | " \n",
|
47 | 48 | " def __init__(self,f ,l ,p ,employees=None ):\n",
|
48 | 49 | " super().__init__(f,l,p)\n",
|
|
0 commit comments