Python - Variables and Dynamic Typing
What will be the output of this code?
value = 3.14 print(type(value))
value = 3.14 print(type(value))
valuevalue is assigned 3.14, which is a decimal number, so its type is float.print(type(value)) outputstype() function returns <class 'float'> for a float value, which is printed.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions