Computer Science for IGCSE & O level - Programming (Section 7 - No. 31)

What is the output of `print(str(123) + "456")`?
579
123456
"123456"
Error

Explanation

str(123) converts 123 to a string; string concatenation results in 123456.

Comments (0)

Advertisement