Welcome to the Treehouse Community
Looking to learn something new?
youssef b10taCourses Plus Student 2,755 Points
why here the output is True:?? "python" > "chocolate"
why the value of this syntax is True i don't understand it ? dose python automatically calculate the length of the strings ?
"python" > "chocolate"
Steven Parker220,937 Points
When you compare strings, it's not the length but the alphabetic order that is being tested. Since a word starting with "p" comes after a word starting with "c", it is considered to be "greater than".