CBSE Class 11 Computer Science
Question 141 of 173
Data Handling — Question 30
Back to all questions 30
Question Question 19b
What will be the output produced?
x, y = '5', 2
z = x + y
print(z)Answer
This code produces an error in the line z = x + y as operands of addition operator (+) are string and int, respectively which is not supported by Python.