In [29]:
#integer
x=20
In [30]:
x
Out[30]:
In [31]:
type(x)
Out[31]:
In [32]:
#float/double,in python it is called as floating point datatype
y=32
In [33]:
y
Out[33]:
In [34]:
z=50.7
In [35]:
z
Out[35]:
In [36]:
type(y)
Out[36]:
In [37]:
type(z)
Out[37]:
In [38]:
#string
a="hello sunit"
In [39]:
a
Out[39]:
In [40]:
type(a)
Out[40]:
In [41]:
b = "hello world"
c= 'hello2'
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [42]:
b
Out[42]:
In [43]:
type(b)
Out[43]:
In [44]:
s='hello23'
In [45]:
s
Out[45]:
In [46]:
type(s)
Out[46]:
In [47]:
s
Out[47]:
In [48]:
s
Out[48]:
In [49]:
s
Out[49]:
In [ ]:
In [51]:
print(c)
In [52]:
# logical or boolean
y=True
In [53]:
y
Out[53]:
In [54]:
type(y)
Out[54]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: