KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

What will be the output of the following Python code?

a = "hello" 
b = "world" 
print(a + b) 

Python String Manipulation

1 Like

Answer

helloworld

Working

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.

Answered By

1 Like


Related Questions