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
How does data acquisition play a key role in Artificial Intelligence project cycle?
What will be the output of the following Python code?
x = [1, 2, 3, 4] x.append([5, 6]) print(x)What will be the output of the following Python code?
x = {1: 'apple', 2: 'banana'} x[3] = "cherry" print(x)Write any three benefits of health care robots.