min max function python code example
Example: min max code in python
listA = [18, 19, 21, 22]
print('The smallest number from listA is:', min(listA))
print('The largest number from listA is:', max(listA))
strA = 'AppDividend'
print('The smallest character from strA is:', min(strA))
print('The largest character from strA is:', max(strA))
strA = 'AppDividend'
strB = 'Facebook'
strC = 'Amazon'
print('The smallest string is:', min(strA, strB, strC))
print('The largest string is:', max(strA, strB, strC))