Data Type Comparisons


#1

I was wondering how to do comparisons on other data types like on strings and lists.

Like

'Apple' > 'Orange'

Or

3,4,5] < [1,6]


#2

@alankwtam26,
On your quest for knowledge you might use a google search
== discussions /opinions ==
python string comparison site:stackoverflow.com
OR
python string greater than comparison site:stackoverflow.com
for instance
http://stackoverflow.com/questions/4806911/string-comparison-technique-used-by-python

==OR==
python string greater than comparison site:python.org
https://docs.python.org/2.3/ref/comparisons.html