File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 1919 },
2020 {
2121 "cell_type" : " code" ,
22- "execution_count" : 1 ,
22+ "execution_count" : 7 ,
2323 "metadata" : {},
2424 "outputs" : [],
2525 "source" : [
2626 " x= 1\n " ,
2727 " y = 'Hello'\n " ,
2828 " z= 1.5\n " ,
29- " A= True"
29+ " A= True\n " ,
30+ " c=3+2j"
31+ ]
32+ },
33+ {
34+ "cell_type" : " markdown" ,
35+ "metadata" : {},
36+ "source" : [
37+ " we us function **type()** for getting the data types of the objects"
3038 ]
3139 },
3240 {
3341 "cell_type" : " code" ,
34- "execution_count" : 5 ,
42+ "execution_count" : 8 ,
3543 "metadata" : {},
3644 "outputs" : [
3745 {
4149 " <class 'int'>\n " ,
4250 " <class 'str'>\n " ,
4351 " <class 'float'>\n " ,
44- " <class 'bool'>\n "
52+ " <class 'bool'>\n " ,
53+ " <class 'complex'>\n "
4554 ]
4655 }
4756 ],
4857 "source" : [
4958 " print(type(x))\n " ,
5059 " print(type(y))\n " ,
5160 " print(type(z))\n " ,
52- " print(type(A))"
53- ]
54- },
55- {
56- "cell_type" : " markdown" ,
57- "metadata" : {},
58- "source" : [
59- " we us function **type()** for getting the data types of the objects"
61+ " print(type(A))\n " ,
62+ " print(type(c))"
6063 ]
6164 },
6265 {
You can’t perform that action at this time.
0 commit comments