What is the output of print('Z' < 'a') in Python?
print('Z'
Correct answer
D. True
D. True
Strings compare by Unicode code points, so uppercase letters sort before lowercase.
Asked in: Python Interview Output Prediction
https://docs.python.org/3/reference/datamodel.htmlNot sure why the answer is D? Ask here and get an explanation.