1. Home
  2. Data Science
  3. Python
  4. What is the output of print('5' + '5') in Python?

Added 25 Nov 2026

What is the output of print('5' + '5') in Python?

print('5' + '5')
  1. 55 Correct answer
  2. 10
  3. Error
  4. '5'5

Correct answer

A. 55

7 views

MCQSEXAM

Explanation

The + operator concatenates two strings, so '5' + '5' gives '55'.

Reference

Asked in: Python Interview Data Types

https://docs.python.org/3/library/stdtypes.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs