python program to compare two sentences whether lexicographically greater or not code example Example: lexicographically greater string java s1.compareTo(s4)