Which of the following will not result in declaring x as datatype of float?

Q & ACategory: PythonWhich of the following will not result in declaring x as datatype of float?
Admin Staff asked 5 years ago

Which of the following will not result in declaring x as datatype of float?

a)x=int(y)
b)x=float.fromhex(‘A’)
c)x=5
d)x=float(10)

1 Answers
Admin Staff answered 5 years ago

a)x=int(y)