We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90e1bd2 commit 73c1523Copy full SHA for 73c1523
Employee isInstanse & isSubclass.ipynb
@@ -2,15 +2,19 @@
2
"cells": [
3
{
4
"cell_type": "code",
5
- "execution_count": 3,
+ "execution_count": 5,
6
"metadata": {},
7
"outputs": [
8
9
"name": "stdout",
10
"output_type": "stream",
11
"text": [
12
"True\n",
13
- "False\n"
+ "False\n",
14
+ "True\n",
15
16
17
+ "True\n"
18
]
19
}
20
],
@@ -61,8 +65,10 @@
61
65
"\n",
62
66
"print(isinstance(dev_1,Developer))\n",
63
67
"print(isinstance(dev_1,Manager))\n",
64
- "print(isinstance(dev_1,Developer))\n",
- "print(isinstance(dev_1,Manager))"
68
+ "print(isinstance(man_1,Manager))\n",
69
+ "print(isinstance(man_1,Developer))\n",
70
+ "print(isinstance(dev_1,Employee))\n",
71
+ "print(isinstance(man_1,Employee))"
72
73
74
0 commit comments