👑️
А алгоритм сравнения примерно такой:
def compare(one, other):
for i1, i2 in zip(one, other):
if i1>i2:
print("one is bigger than other")
break
elif:
print("other is bigger than one")
break
else:
if len(one)>len(other):
print("one is bigger than other")
elif len(one)<len(other):
print("other is bigger than one")
else:
print("one is equal to other")