Jan-02-2017, 12:55 PM
Hi guys,
Find maximum and minimum element from the list and return output in dict i.e dict:{'Minimum : value,'Maximum':value'}
i am having a list of values
This is what i tried using built in func to find the max and min value
Find maximum and minimum element from the list and return output in dict i.e dict:{'Minimum : value,'Maximum':value'}
i am having a list of values
lis=[10,25,45,7,90]i just need to find the max and min value in the list and return the output in dictionary.
This is what i tried using built in func to find the max and min value
lis=[10,25,45,7,90] maxi=max(lis) mini=min(lis)but how to return those outputs in dictionary format?