Numbers Examples All

 

x=5
y=4.5
z="hari"
w=7j
print("w,x,y,z values is:",w,x,y,z)
print("type w is:", type(w))
print("type w is:", type(x))
print("type w is:", type(y))
print("type w is:", type(z))

o/p:

w,x,y,z values is: 7j 5 4.5 hari
type w is: <class 'complex'>
type w is: <class 'int'>
type w is: <class 'float'>
type w is: <class 'str'>