What is the output of print("2" + "3")?
-
A
5
-
B
23
Correct answer
-
C
23
-
D
Error
11 views
Explanation
+ concatenates strings, so "2" + "3" = "23" (string concatenation). Source: Standard Python content (FBISE-aligned).
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ