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

  • (A) str()
  • (B) chr()
  • (C) int()
  • (D) ord()
πŸ’¬ Discuss
βœ… Correct Answer: (C) int()
Explanation: `int()` converts a string or float to an integer.
Explanation by: Mr. Dubey
`int()` converts a string or float to an integer.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
87
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate