File tree 1 file changed +15
-12
lines changed
1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 19
19
},
20
20
{
21
21
"cell_type" : " code" ,
22
- "execution_count" : 1 ,
22
+ "execution_count" : 7 ,
23
23
"metadata" : {},
24
24
"outputs" : [],
25
25
"source" : [
26
26
" x= 1\n " ,
27
27
" y = 'Hello'\n " ,
28
28
" 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"
30
38
]
31
39
},
32
40
{
33
41
"cell_type" : " code" ,
34
- "execution_count" : 5 ,
42
+ "execution_count" : 8 ,
35
43
"metadata" : {},
36
44
"outputs" : [
37
45
{
41
49
" <class 'int'>\n " ,
42
50
" <class 'str'>\n " ,
43
51
" <class 'float'>\n " ,
44
- " <class 'bool'>\n "
52
+ " <class 'bool'>\n " ,
53
+ " <class 'complex'>\n "
45
54
]
46
55
}
47
56
],
48
57
"source" : [
49
58
" print(type(x))\n " ,
50
59
" print(type(y))\n " ,
51
60
" 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))"
60
63
]
61
64
},
62
65
{
You can’t perform that action at this time.
0 commit comments