Answers for "python string min and max"

1

min and max in python

#min and max in python
L1 = eval(input('enter list:'))#eval() helps  inputting by user desires of list.
minimum=min(L1)#min() function helps to note smallest of the element.
print('minimum numeric',minimum)
maximum=max(L1)#max() function helps to note biggest of the element.
print('maximum numeric',maximum)
#output
enter list:[4,-8,65,24.0,24,7.25]
minimum numeric -8
maximum numeric 65
Posted by: Guest on December-20-2021
1

max string length python

#Maximum length of a string is platform dependent and depends upon address and 
#space
import sys
sys.maxsize
Posted by: Guest on October-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language