Hey so being the NEWBY I am I was wondering how I could find multiple maximums (i.e. there is more than one maximum or item of the same length) and minimums(same situ as maximums) from a list. I've tried using the max function but yet it prints only one item, same with min. It is to be done for length of the string in the list (e.g. usinglen)!
this is the code i had so far
def choice4(filelist):
try:
c4longest=max(filelist,key=len)
print(c4longest,"is the longest item in the list")