Skip to content

Commit 63dcc8c

Browse files
committed
Print BUG
1 parent 337c97e commit 63dcc8c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎Employee Hierarchical Inheritance.ipynb

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 18,
5+
"execution_count": 21,
66
"metadata": {},
77
"outputs": [
88
{
9-
"name": "stdout",
10-
"output_type": "stream",
11-
"text": [
12-
"Developer Overring : Soumyadip Chowdhury Soumyadip.Chowdhury@python.com 700000 Python\n",
13-
"Developer Overring : Soumyadip Chowdhury Soumyadip.Chowdhury@python.com 900000 JAVA\n",
14-
"Manager Overring : Soumyadip Chowdhury Soumyadip.Chowdhury@python.com 700000 <__main__.Developer object at 0x000001EFA8D0BC08>\n"
9+
"ename": "SyntaxError",
10+
"evalue": "invalid syntax (<ipython-input-21-e42967c55020>, line 30)",
11+
"output_type": "error",
12+
"traceback": [
13+
"\u001b[1;36m File \u001b[1;32m\"<ipython-input-21-e42967c55020>\"\u001b[1;36m, line \u001b[1;32m30\u001b[0m\n\u001b[1;33m def __init__(self,f ,l ,p ,employees=None):\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
1514
]
1615
}
1716
],
@@ -43,9 +42,9 @@
4342
" def print(self):\n",
4443
" for x in self.employees:\n",
4544
" print(x)\n",
46-
" print(\"Manager Overring : {} {} {} {} {}\".format(self.first,self.last,self.email,self.pay,self.employees)\n",
45+
" print(\"Manager Overring : {} {} {} {} {}\".format(self.first,self.last,self.email,self.pay,self.employees)\n",
4746
" \n",
48-
" def __init__(self,f ,l ,p ,employees=None ):\n",
47+
" def __init__(self,f ,l ,p ,employees=None):\n",
4948
" super().__init__(f,l,p)\n",
5049
" if employees is None:\n",
5150
" self.employees=[]\n",

0 commit comments

Comments
 (0)