A

Admin • 832.27K Points
Coach

Q. Which function converts a string to an integer?

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

Explanation by: Admin

`int()` converts a string or float to an integer.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.