Python Programming - Data Types - Discussion

Discussion Forum : Data Types - General Questions (Q.No. 51)
51.
How do you check if a variable is of type float?
isfloat(variable)
type(variable) == float
variable.is_float()
float(variable)
Answer: Option
Explanation:
The type() function is used to check the type of a variable.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.