58.3k views
3 votes
 myLIst = [1, 2, 45, 66, 77, 88]

White the line of code which will print the maximum value in myList.

 myLIst = [1, 2, 45, 66, 77, 88] White the line of code which will print the maximum-example-1
User Qualilogy
by
8.1k points

1 Answer

5 votes

Answer:

print(max(myList))

Step-by-step explanation:

Hi,

To print the maximum value in the list, we can use the max() function in Python that takes a list as an argument. The line of code is: print(max(myList)) .

Good luck!

User Dunstan
by
7.5k points