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" : " ABX9TyP/xlfz8jQdZseBQpsfAYJP " ,
7
+ "authorship_tag" : " ABX9TyP/9gqU1J36qTNs262s3U2G " ,
8
8
"include_colab_link" : true
9
9
},
10
10
"kernelspec" : {
107
107
" construct = dict(name = \" Apurba\" , age = '18+'); print(construct)"
108
108
]
109
109
},
110
+ {
111
+ "cell_type" : " code" ,
112
+ "source" : [
113
+ " ff = {1: 'value'}\n " ,
114
+ " f0 = {}\n " ,
115
+ " \n " ,
116
+ " if ff:\n " ,
117
+ " print('yes')\n " ,
118
+ " else:\n " ,
119
+ " print('no')\n " ,
120
+ " \n " ,
121
+ " if f0:\n " ,
122
+ " print('yes')\n " ,
123
+ " else:\n " ,
124
+ " print('no')\n " ,
125
+ " \n " ,
126
+ " if len(f0) > 0:\n " ,
127
+ " print('yes')\n " ,
128
+ " else:\n " ,
129
+ " print('no')\n " ,
130
+ " \n " ,
131
+ " for i in f0:\n " ,
132
+ " print(i)\n " ,
133
+ " else:\n " ,
134
+ " print('no')"
135
+ ],
136
+ "metadata" : {
137
+ "colab" : {
138
+ "base_uri" : " https://localhost:8080/"
139
+ },
140
+ "id" : " pluau-FAbzKE" ,
141
+ "outputId" : " cb05ad73-4163-4678-9f64-21aaa5da6757"
142
+ },
143
+ "execution_count" : 1 ,
144
+ "outputs" : [
145
+ {
146
+ "output_type" : " stream" ,
147
+ "name" : " stdout" ,
148
+ "text" : [
149
+ " yes\n " ,
150
+ " no\n " ,
151
+ " no\n " ,
152
+ " no\n "
153
+ ]
154
+ }
155
+ ]
156
+ },
110
157
{
111
158
"cell_type" : " code" ,
112
159
"source" : [
You can’t perform that action at this time.
0 commit comments