QuestionQ58

VerifiedMiscellaneous (List Comprehensions, Lambdas, Closures, I/O)

Which of the following expressions evaluate to True?

Choose two
Explanation

String comparisons are lexicographic and case-sensitive, so 'ABC' < 'abc' evaluates to True. Also, string multiplication is evaluated before string concatenation: '1' + '2' * 2 produces '122', which is not equal to '12'.

Community Discussion

No comments yet. Be the first to start the discussion!