YouTip LogoYouTip

Python3 Att List Max

# Python3.x Python3 List max() Method [![Image 1: Python3 Lists](#) Python3 Lists](#) * * * ## Description The max() method returns the largest element in a list. ## Syntax The syntax for the max() method is: max(list) ## Parameters * list -- The list from which to return the maximum value. ## Return Value Returns the largest element in the list. ## Example The following example demonstrates the usage of the max() function: ## Example #!/usr/bin/python3 list1, list2 =['Google','Tutorial','Taobao'],[456,700,200] print("list1 max element value : ",max(list1)) print("list2 max element value : ",max(list2)) The output of the above example is: list1 max element value : Taobao list2 max element value : 700 [![Image 2: Python3 Lists](#) Python3 Lists](#)
← Python3 Att List ListPython3 Att List Max β†’