File tree Expand file tree Collapse file tree 1 file changed +91
-0
lines changed Expand file tree Collapse file tree 1 file changed +91
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "cells" : [
3
+ {
4
+ "cell_type" : " markdown" ,
5
+ "metadata" : {},
6
+ "source" : [
7
+ " # Data Types"
8
+ ]
9
+ },
10
+ {
11
+ "cell_type" : " markdown" ,
12
+ "metadata" : {},
13
+ "source" : [
14
+ " * Int - numerical and non decimal values\n " ,
15
+ " * Float - Decimal values\n " ,
16
+ " * Bool - Boolean (true or false)\n " ,
17
+ " * Str - Strings"
18
+ ]
19
+ },
20
+ {
21
+ "cell_type" : " code" ,
22
+ "execution_count" : 1 ,
23
+ "metadata" : {},
24
+ "outputs" : [],
25
+ "source" : [
26
+ " x= 1\n " ,
27
+ " y = 'Hello'\n " ,
28
+ " z= 1.5\n " ,
29
+ " A= True"
30
+ ]
31
+ },
32
+ {
33
+ "cell_type" : " code" ,
34
+ "execution_count" : 5 ,
35
+ "metadata" : {},
36
+ "outputs" : [
37
+ {
38
+ "name" : " stdout" ,
39
+ "output_type" : " stream" ,
40
+ "text" : [
41
+ " <class 'int'>\n " ,
42
+ " <class 'str'>\n " ,
43
+ " <class 'float'>\n " ,
44
+ " <class 'bool'>\n "
45
+ ]
46
+ }
47
+ ],
48
+ "source" : [
49
+ " print(type(x))\n " ,
50
+ " print(type(y))\n " ,
51
+ " 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"
60
+ ]
61
+ },
62
+ {
63
+ "cell_type" : " code" ,
64
+ "execution_count" : null ,
65
+ "metadata" : {},
66
+ "outputs" : [],
67
+ "source" : []
68
+ }
69
+ ],
70
+ "metadata" : {
71
+ "kernelspec" : {
72
+ "display_name" : " Python 3" ,
73
+ "language" : " python" ,
74
+ "name" : " python3"
75
+ },
76
+ "language_info" : {
77
+ "codemirror_mode" : {
78
+ "name" : " ipython" ,
79
+ "version" : 3
80
+ },
81
+ "file_extension" : " .py" ,
82
+ "mimetype" : " text/x-python" ,
83
+ "name" : " python" ,
84
+ "nbconvert_exporter" : " python" ,
85
+ "pygments_lexer" : " ipython3" ,
86
+ "version" : " 3.6.4"
87
+ }
88
+ },
89
+ "nbformat" : 4 ,
90
+ "nbformat_minor" : 2
91
+ }
You can’t perform that action at this time.
0 commit comments