KnowledgeBoat Logo

Computer Science

Find the errors(s)

print ("Hello" + 2)  
print ("Hello" + "2")
print ("Hello" * 2) 

Python Data Handling

14 Likes

Answer

The line print ("Hello" + 2) causes an error as addition operator (+) cannot concatenate a string and an int.

Answered By

7 Likes


Related Questions