# Data type conversions

a = 8

b = 7.54

c = "Nandan"

d = True

e = '7'

#Coversion of int to float

f = float(a)

print(type(a))

print(type(f))

#Conversion of int to String

g = str(a)

print(type(a))

print(type(g))

#Conversion of int to Bool

h = bool(a)

print(type(a))

print(type(h))

#Conversion of float to int

i = int(b)

print(type(b))

print(type(i))

#Conversion of float to String

j = str(b)

print(type(b))

print(type(j))

#Conversion of float to Bool

k = bool(b)

print(type(b))

print(type(k))

#Conversion of String to int
'''
l = int(c)

print(type(c))

print(type(l))      # Error occured as not able to convert str to int

#Conversion of String to float

m = float(c)

print(type(c))

print(type(m))      # Error occured as not able to convert str to int
'''
#Conversion of String to Bool

n = bool(c)

print(type(c))

print(type(n))

#Conversion of Bool to Int

o = int(d)

print(type(d))

print(type(o))

#Conversion of Bool to float

p = float(d)

print(type(d))

print(type(p))

#Conversion of Bool to String

q = str(d)

print(type(d))

print(type(q))

#Conversion of number string to int

r = int(e)

print(type(e))

print(type(r))

#Conversion of number String to float

s = float(e)

print(type(e))

print(type(s))

#Conversion of number String to Bool

t = bool(e)

print(type(e))

print(type(t))
