65.5k views
4 votes
What is printed by the python code? print('2' + '3')

2 Answers

6 votes

Answer:

23

Step-by-step explanation:

User TimothyHeyden
by
4.9k points
3 votes

Answer:

23

Step-by-step explanation:

Given

print('2' + '3')

Required

The output

First, the expression in bracket is evaluated.

'2' + '3' = '23' i.e. The + concatenates '2' and '3'

So, the statement becomes

print('23')

The above statement prints the expression in quotes.

Hence, the output is 23

User Zacheusz
by
4.8k points