Skip to content

Commit 69416ca

Browse files
Created using Colab
1 parent 16271ce commit 69416ca

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

Python+OOP (Notes and University Assignments)/All conceptual notes (Basic + OOP)/006_Lists.ipynb

+48-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"metadata": {
55
"colab": {
66
"provenance": [],
7-
"authorship_tag": "ABX9TyOdRDrJ0akT1HdKZ+CwfEIX",
7+
"authorship_tag": "ABX9TyOgvfOsZpI2HSEBJndhqtuP",
88
"include_colab_link": true
99
},
1010
"kernelspec": {
@@ -147,6 +147,53 @@
147147
}
148148
]
149149
},
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+
},
150197
{
151198
"cell_type": "code",
152199
"source": [

0 commit comments

Comments
 (0)