In [29]:
#integer
x=20

In [30]:
x


Out[30]:
20

In [31]:
type(x)


Out[31]:
int


In [32]:
#float/double,in python it is called as floating point datatype
y=32

In [33]:
y


Out[33]:
32

In [34]:
z=50.7

In [35]:
z


Out[35]:
50.7

In [36]:
type(y)


Out[36]:
int

In [37]:
type(z)


Out[37]:
float


In [38]:
#string
a="hello sunit"

In [39]:
a


Out[39]:
'hello sunit'

In [40]:
type(a)


Out[40]:
str

In [41]:
b = "hello world"
c= 'hello2'

In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [42]:
b


Out[42]:
'hello world'

In [43]:
type(b)


Out[43]:
str

In [44]:
s='hello23'

In [45]:
s


Out[45]:
'hello23'

In [46]:
type(s)


Out[46]:
str

In [47]:
s


Out[47]:
'hello23'

In [48]:
s


Out[48]:
'hello23'

In [49]:
s


Out[49]:
'hello23'

In [ ]:


In [51]:
print(c)


hello2


In [52]:
# logical or boolean
y=True

In [53]:
y


Out[53]:
True

In [54]:
type(y)


Out[54]:
bool

In [ ]:


In [ ]:


In [ ]:


In [ ]: