I have made four lists that all have some values and I want to say to computer to print the name of that list which has the greatest length.
I tried this code
list1=[values,values,values]
list2=[values,values,values]
list3=[values,values,values]
list4=[values,values,values]
if len(list1)>len(list2) and len(list1)>len(list3) and len(list1)>len(list4):
print(True)
but it takes all my time and I need to compare list2 to others and list 3 and list4 so is there a way that I just do like this:
if len(list1)>(len(list2) and len(list3) and len(list4)):
print(True)
or this print(that list which has the greatest length)