1def min_max(*n):
2 return {"min":min(n),"max":max(n)}
3print(min_max(-10,1,2,3,45))
1listA = [18, 19, 21, 22]
2print('The smallest number from listA is:', min(listA)) # 18
3print('The largest number from listA is:', max(listA)) # 22
4
5strA = 'AppDividend'
6print('The smallest character from strA is:', min(strA)) # A
7print('The largest character from strA is:', max(strA)) # v
8
9strA = 'AppDividend'
10strB = 'Facebook'
11strC = 'Amazon'
12print('The smallest string is:', min(strA, strB, strC)) # Amazon
13print('The largest string is:', max(strA, strB, strC)) # Facebook
1x = sum(arr)
2
3minValue = x - max(arr)
4maxValue = x - min(arr)
5
6print(minValue, maxValue)
7