+ 1
Comparing among data type
Hi,I were playing a challenge and I have found a question include comparing between two lists like this [1,2,3,4]> [1,2,3] The rest was False đ€ That's make me think about more comparing possiblities like comparing between a string and another...etc can someone explain how can I find the result and thanks â„ïž
1 Answer
+ 3
You can normally compare built-in types.
It depends on the implementation of methods __eq__and __gt__ how comparison is done.