YouTip LogoYouTip

Python3 Att List Min

# Python3.x Python3 List min() Method [![Image 3: Python3 Lists](#) Python3 Lists](#) * * * ## Description The `min()` method returns the smallest element in a list. ## Syntax The syntax for the `min()` method is: min(list) ## Parameters * `list` -- The list from which to return the minimum value. ## Return Value Returns the smallest element in the list. ## Example The following example demonstrates the usage of the `min()` function: #!/usr/bin/python3 list1, list2 = ['Google', '', 'Taobao'], [456, 700, 200]print ("list1 minimum element value : ", min(list1))print ("list2 minimum element value : ", min(list2)) The output of the above example is as follows: list1 minimum element value : Google list2 minimum element value : 200 [![Image 4: Python3 Lists](#) Python3 Lists](#)
← Java Arraylist LastindexofJava Arraylist Get β†’