File tree Expand file tree Collapse file tree
Python+OOP (Notes and University Assignments)/All conceptual notes (Basic + OOP) Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "metadata" : {
55 "colab" : {
66 "provenance" : [],
7- "authorship_tag" : " ABX9TyP/xlfz8jQdZseBQpsfAYJP " ,
7+ "authorship_tag" : " ABX9TyP/9gqU1J36qTNs262s3U2G " ,
88 "include_colab_link" : true
99 },
1010 "kernelspec" : {
107107 " construct = dict(name = \" Apurba\" , age = '18+'); print(construct)"
108108 ]
109109 },
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+ },
110157 {
111158 "cell_type" : " code" ,
112159 "source" : [
You can’t perform that action at this time.
0 commit comments