A

Admin • 833.24K Points
Coach

Q. Which of these functions can convert a string to an integer?

  • (A) int()
  • (B) str()
  • (C) float()
  • (D) chr()
  • Correct Answer - Option(A)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`int()` converts a string representing a number into an integer.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.