Question #269683

What is the datatype of the length, width, area and perimeter above?

Hint: Use Python's type(var_1) to find out.

Divide any of the variables above by any number (except 0 !), assign it to variable. What is the datatype of the resulting variable?

What did you find out? 


Expert's answer

'''What is the datatype of the length, width, area and perimeter above?


Hint: Use Python's type(var_1) to find out.


Divide any of the variables above by any number (except 0 !), assign it to variable. What is the datatype of the resulting variable?


What did you find out?'''
#assigned variables
var_1 = length = 31
var_2 = width = 2.31
var_3 = area = 1.2j
#types of data defined
print(type(var_1))
print(type(var_2))
print(type(var_3))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS