Q. What is the output of the following code?

Code:
print('1' + 2)
  • (A) 3
  • (B) '12'
  • (C) Error
  • (D) '1 2'
πŸ’¬ Discuss
βœ… Correct Answer: (C) Error
Explanation: You cannot concatenate string and integer without conversion.
Explanation by: Mr. Dubey
You cannot concatenate string and integer without conversion.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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