Sunday, August 30, 2020

write a python program for implicit type conversion

 num_int = 123

num_flo = 1.23


num_new = num_int + num_flo


print("datatype of num_int:",type(num_int))

print("datatype of num_flo:",type(num_flo))


print("Value of num_new:",num_new)

print("datatype of num_new:",type(num_new))

No comments:

Post a Comment