Computer Science
What will be the output produced?
x, y = '5', 2
z = x + y
print(z)
Python
Python Data Handling
16 Likes
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.
Answered By
13 Likes
Related Questions
What will be the output produced?
x, y, z = True, False, False a = x or (y and z) b = (x or y) and z print(a, b)
Find the errors(s)
print ("Hello"/2) print ("Hello" / 2)
What will be the output produced?
s = 'Sipo' s1 = s + '2' s2 = s * 2 print(s1) print(s2)
What will be the output produced?
w, x, y, z = True , 4, -6, 2 result = -(x + z) < y or x ** z < 10 print(result)