Professional Documents
Culture Documents
Indentaions
Indentaions
if 5 > 2:
#^ needs atleast only 1 space but 4 is recommended. if you skip it, it will cause-
# a syntax error
if 5> 2:
#^ dont separate code spaces when attempting to execute the same code.
#x = value
a = 5 #int
b = "ELmer" #str
print(type(b))
<class 'str'>
#The conversion of one data type into the other data type is known as type casting
#int(), float(), str(), ord(), hex(), oct(), tuple(), set(), list(), dict(), etc. for the type casting in python.
x = str(3)
y = int(3)
z = float(3)
print(x)
print(y)
print(z)
Out - 3
3.0