File tree 1 file changed +43
-4
lines changed
1 file changed +43
-4
lines changed Original file line number Diff line number Diff line change 54
54
" ## The 3 types of boolean operators are AND, OR and NOT"
55
55
]
56
56
},
57
+ {
58
+ "cell_type" : " markdown" ,
59
+ "metadata" : {},
60
+ "source" : [
61
+ " ## AND GATE TRUTH TABLE\n " ,
62
+ " \n " ,
63
+ " | A | B | A.B |\n " ,
64
+ " | --- | --- | --- |\n " ,
65
+ " | 0 | 0 | 0 |\n " ,
66
+ " | 0 | 1 | 0 |\n " ,
67
+ " | 1 | 0 | 0 |\n " ,
68
+ " | 1 | 1 | 1 |\n "
69
+ ]
70
+ },
71
+ {
72
+ "cell_type" : " markdown" ,
73
+ "metadata" : {},
74
+ "source" : [
75
+ " ## OR GATE TRUTH TABLE\n " ,
76
+ " \n " ,
77
+ " | A | B | A+B |\n " ,
78
+ " | --- | --- | --- |\n " ,
79
+ " | 0 | 0 | 0 |\n " ,
80
+ " | 0 | 1 | 1 |\n " ,
81
+ " | 1 | 0 | 1 |\n " ,
82
+ " | 1 | 1 | 1 |"
83
+ ]
84
+ },
85
+ {
86
+ "cell_type" : " markdown" ,
87
+ "metadata" : {},
88
+ "source" : [
89
+ " ## NOT GATE TRUTH TABLE\n " ,
90
+ " | A | ~A | \n " ,
91
+ " | --- | --- |\n " ,
92
+ " | 0 | 1 | \n " ,
93
+ " | 1 | 0 | "
94
+ ]
95
+ },
57
96
{
58
97
"cell_type" : " code" ,
59
98
"execution_count" : 25 ,
97
136
},
98
137
{
99
138
"cell_type" : " code" ,
100
- "execution_count" : 29 ,
139
+ "execution_count" : 1 ,
101
140
"metadata" : {},
102
141
"outputs" : [
103
142
{
106
145
" False"
107
146
]
108
147
},
109
- "execution_count" : 29 ,
148
+ "execution_count" : 1 ,
110
149
"metadata" : {},
111
150
"output_type" : " execute_result"
112
151
}
259
298
}
260
299
],
261
300
"source" : [
262
- " ## According to me there is 2 blocks if else blocks in the code.I dont find 3\n " ,
263
- " spam = \n " ,
301
+ " ## According to me there is 2 if else blocks in the code.I dont find 3\n " ,
302
+ " spam = 10 \n " ,
264
303
" if spam == 10:\n " ,
265
304
" print('eggs')\n " ,
266
305
" if spam > 5:\n " ,
You can’t perform that action at this time.
0 commit comments