A

Admin • 832.27K Points
Coach

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

  • (A) str()
  • (B) chr()
  • (C) int()
  • (D) ord()
  • Correct Answer - Option(C)
  • Views: 27
  • 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.