Discuss Forum

1.

Which of the following function convert a string to a float in python ?

  • A. int (x. [.base])
  • B. int (x. [.base])
  • C. int (x. [.base])
  • D. int (x. [.base])

Answer: Option B

Explanation:

float(x) − Converts x to a floating - point number.

Post your comments here:

Name:
Mobile:
Email:(Optional)

» Your comments will be displayed only after manual approval.