Q. What is the output of float(‘3.14’)?

A
3
B
3.14
C
314
D
Error
Solution:

float(‘3.14’) converts the string to a float, resulting in 3.14.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!