File tree 1 file changed +48
-1
lines changed
Python+OOP (Notes and University Assignments)/All conceptual notes (Basic + OOP)
1 file changed +48
-1
lines changed Original file line number Diff line number Diff line change 4
4
"metadata" : {
5
5
"colab" : {
6
6
"provenance" : [],
7
- "authorship_tag" : " ABX9TyOdRDrJ0akT1HdKZ+CwfEIX " ,
7
+ "authorship_tag" : " ABX9TyOgvfOsZpI2HSEBJndhqtuP " ,
8
8
"include_colab_link" : true
9
9
},
10
10
"kernelspec" : {
147
147
}
148
148
]
149
149
},
150
+ {
151
+ "cell_type" : " code" ,
152
+ "source" : [
153
+ " ff = [1, 2]\n " ,
154
+ " f0 = []\n " ,
155
+ " \n " ,
156
+ " if ff:\n " ,
157
+ " print('yes')\n " ,
158
+ " else:\n " ,
159
+ " print('no')\n " ,
160
+ " \n " ,
161
+ " if f0:\n " ,
162
+ " print('yes')\n " ,
163
+ " else:\n " ,
164
+ " print('no')\n " ,
165
+ " \n " ,
166
+ " if len(f0) > 0:\n " ,
167
+ " print('yes')\n " ,
168
+ " else:\n " ,
169
+ " print('no')\n " ,
170
+ " \n " ,
171
+ " for i in f0:\n " ,
172
+ " print(i)\n " ,
173
+ " else:\n " ,
174
+ " print('no')"
175
+ ],
176
+ "metadata" : {
177
+ "colab" : {
178
+ "base_uri" : " https://localhost:8080/"
179
+ },
180
+ "id" : " QxY4hs6zbQcF" ,
181
+ "outputId" : " b7ba7669-57b8-4cd0-e669-19bc2545e7d3"
182
+ },
183
+ "execution_count" : 1 ,
184
+ "outputs" : [
185
+ {
186
+ "output_type" : " stream" ,
187
+ "name" : " stdout" ,
188
+ "text" : [
189
+ " yes\n " ,
190
+ " no\n " ,
191
+ " no\n " ,
192
+ " no\n "
193
+ ]
194
+ }
195
+ ]
196
+ },
150
197
{
151
198
"cell_type" : " code" ,
152
199
"source" : [
You can’t perform that action at this time.
0 commit comments