Let x = “50”. Which of the following commands converts the ‘x’ to float datatype?
A. str(float,x)
B. x.float()
C. float(x)
D. Cannot convert a string to float datatype
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.
float(x) is the command to convert the ‘x’ to float datatype. So, option C is correct.