Python Forum
Get the biggest number from a two dimensional list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get the biggest number from a two dimensional list
#2
To find the max of a list just call max on it directly
print(max([3, 1, 5, 3, 7, 9]))
Output:
9
create a new list of the max of each inner list and then use max on that new list.

Note: def biggest(list): list is a built in keyword use another parameter name
Reply


Messages In This Thread
RE: Get the biggest number from a two dimensional list - by Yoriz - Aug-07-2020, 05:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  list digit into number Voldyy 2 1,604 Jul-10-2022, 06:13 PM
Last Post: deanhystad
  Displaying list correspond to the column number danlopek14q 9 4,089 Aug-27-2021, 04:32 AM
Last Post: naughtyCat
  How to convert every even number in a list to odd? Bruizeh 4 3,853 Aug-27-2021, 03:04 AM
Last Post: naughtyCat
  How can I print the number of unique elements in a list? AnOddGirl 5 3,345 Mar-24-2020, 05:47 AM
Last Post: AnOddGirl
  Two Dimensional Arrays Coder34 1 1,945 Aug-19-2019, 10:48 AM
Last Post: buran
  Multiplying number in a list in an order pythoneer 12 6,740 Mar-23-2018, 08:21 PM
Last Post: buran
  Help with array smallest biggest number thanikos 4 3,406 Nov-30-2017, 01:06 PM
Last Post: thanikos
  adding a number to the list atux_null 4 3,968 Nov-06-2017, 07:01 PM
Last Post: gruntfutuk
  Take the biggest value from array dwiga 9 6,129 Jul-20-2017, 01:28 AM
Last Post: dwiga
  Python Exercise: Generate a two-dimensional array smbx33 4 10,992 Apr-22-2017, 11:51 PM
Last Post: smbx33

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020