Mega Code Archive

 
Categories / Python Tutorial / String
 

Strings are compared according to their order when sorted alphabetically

print "alpha" < "beta"