+ 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 Respuesta
+ 3
You can normally compare built-in types.
It depends on the implementation of methods __eq__and __gt__ how comparison is done.