I have written these lines in python:
print({1, 2, 3} < {1, 3, 2})
print((1, 2, 3) < (1, 3, 2))
These gives output:
False
True
I could not understand the working of <
operator for two sets and two tuples. Please explain.
I have written these lines in python:
print({1, 2, 3} < {1, 3, 2})
print((1, 2, 3) < (1, 3, 2))
These gives output:
False
True
I could not understand the working of <
operator for two sets and two tuples. Please explain.