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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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