A

Admin • 828.03K Points
Coach

Q. Which built-in Python function converts a string to an integer?

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

Explanation by: Admin
`int()` converts a string or other types to integer if possible.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.