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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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