What will be the output of the following Python code?

ICSE Class 10 Robotics & AI PYQ · 2025 Paper · Section A

2(ix)1 Mark · 2025 · Section A · 2025 Paper

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.

← Previous questionNext question →

Browse the free Robotics & AI sample bank