Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ac14b1

Browse files
authored
Create ep02.py
1 parent a567c98 commit 3ac14b1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

EP02 - Storing Information/ep02.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)