Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a567c98 commit 3ac14b1Copy full SHA for 3ac14b1
EP02 - Storing Information/ep02.py
@@ -0,0 +1,26 @@
1
+# Episode 2 of Python101 by Saswat Codes
2
+# https://github.com/saswatcodes/Python101
3
+
4
+#Integer : Integer Values as we know in maths
5
+myInt = 10
6
+print(myInt) #10
7
8
+#Float : Decimal Values
9
+myFloat = 1.1
10
+print(myFloat) #1.1
11
12
+#Boolean : True or False
13
+myBool = 1>2
14
+print(myBool) #False
15
+myBool1 = 2<3
16
+print(myBool1) #True
17
18
+#String : English Sentence compromising of letters, words and phrases
19
+mySent = "Hello World"
20
+print(mySent) #Hello World
21
22
+#To check the data type : type()
23
+print(type(myInt)) #<class 'int'>
24
+print(type(myFloat)) #<class 'float'>
25
+print(type(myBool)) #<class 'bool'>
26
+print(type(mySent)) #<class 'str'>
0 commit comments