Advertisements
Advertisements
Question
Identify the statement from the following which will raise an error:
Options
print("A"*3)
print(5*3)
print("15" + 3)
print("15" + "13")
MCQ
Solution
print("15" + 3)
Explanation:
A type error will occur with the following statement: print("15" + 3), where "15" is a string and "3" is an integer.
shaalaa.com
Is there an error in this question or solution?