Python Forum
Take the biggest value from array
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Take the biggest value from array
#6
(Jul-14-2017, 01:06 PM)ichabod801 Wrote: I don't understand. What is this base you are getting execute and fetchall from? Is it meant to read the table?

Note that join is the opposite of split, so on line 6, b is just equal to data[0].

Hi,
yes, this is fetch from table.
I am trying to do this,

base.execute("select num from tbl_a where nama=%s",(arg1))
hsl = base.fetchall()
print(hsl)
and it returns

Output:
(('2,3',), ('2',), ('1',))
I just want to make it 2,3,2,1
and then I need the biggest value, in this case it should returns 3..
Reply


Messages In This Thread
Take the biggest value from array - by dwiga - Jul-14-2017, 02:30 AM
RE: Take the biggest value from array - by dwiga - Jul-14-2017, 02:51 AM
RE: Take the biggest value from array - by dwiga - Jul-14-2017, 06:24 AM
RE: Take the biggest value from array - by dwiga - Jul-19-2017, 04:20 AM
RE: Take the biggest value from array - by DeaD_EyE - Jul-19-2017, 01:51 PM
RE: Take the biggest value from array - by dwiga - Jul-20-2017, 01:28 AM
RE: Take the biggest value from array - by nilamo - Jul-19-2017, 04:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get the biggest number from a two dimensional list rs74 13 4,191 Aug-09-2020, 04:02 PM
Last Post: deanhystad
  Help with array smallest biggest number thanikos 4 3,406 Nov-30-2017, 01:06 PM
Last Post: thanikos

Forum Jump:

User Panel Messages

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