What is the output of print('5' + '5') in Python?
print('5' + '5')
Correct answer
A. 55
7 views
A. 55
7 views
The + operator concatenates two strings, so '5' + '5' gives '55'.
Asked in: Python Interview Data Types
https://docs.python.org/3/library/stdtypes.htmlNot sure why the answer is A? Ask here and get an explanation.