Q. Which function converts a string to an integer?

  • (A) int()
  • (B) str()
  • (C) float()
  • (D) bool()
πŸ’¬ Discuss
βœ… Correct Answer: (A) 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

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