Nov-10-2019, 04:10 PM
Howdy,
I have a feeling that my issue lies within my second function. The Max function works for returning the single highest digit however the min function returns a blank value
I have a feeling that my issue lies within my second function. The Max function works for returning the single highest digit however the min function returns a blank value
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
lst = [] def sort_max(): max (lst) return ( sorted ( max ( list (lst)))[ - 1 ]) def sort_min(): min (lst) return ( sorted ( min ( list (lst)))[ + 1 ]) while True : usrInput = ( input ( "List " )) if usrInput = = "": print ( "Min" , sort_min(), "Max" , sort_max()) break lst.append(usrInput) |