2(ix)
What will be the output of the following Python code?
a = "hello" b = "world" print(a + b)
Show SolutionHide Solution↓
helloworld
The + operator is used for string concatenation in Python. It joins the two strings "hello" and "world" without adding any space, so the output is helloworld.