Instruction
Output
Print("Hello")
print("Hello"+"How are you")
print(20+21)
print("20"+"21")
Answers
Answered by
2
Answer:
Your output will be:
Hello
HelloHow are you
41
2021
3rd print results in sum because it has integers where arithmetic operation takes place. But in 4th print, there are two strings, they are not integers because they have double quotes around them. Therefore, 4th print will produce result as that of concatenation.
Similar questions