min max python
def min_max(*n):
return {"min":min(n),"max":max(n)}
print(min_max(-10,1,2,3,45))
min max python
def min_max(*n):
return {"min":min(n),"max":max(n)}
print(min_max(-10,1,2,3,45))
min max code in python
listA = [18, 19, 21, 22]
print('The smallest number from listA is:', min(listA)) # 18
print('The largest number from listA is:', max(listA)) # 22
strA = 'AppDividend'
print('The smallest character from strA is:', min(strA)) # A
print('The largest character from strA is:', max(strA)) # v
strA = 'AppDividend'
strB = 'Facebook'
strC = 'Amazon'
print('The smallest string is:', min(strA, strB, strC)) # Amazon
print('The largest string is:', max(strA, strB, strC)) # Facebook
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us