Python Forum
min() function in iterable index
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
min() function in iterable index
#3
Thank you but I know that the min() function return the most lowest element from a sequence.
My question is about the use of this function in a iterable index and in that form :

alphabet[min(min(line, size -1 -line), min(column, size -1 -column))]
Where min () of min (line, size -1 -line) and min (column, size -1 -column) allows to display in the example (n =4):

a(n2 -1)
a, b(n2 -1), a
a, b, c(n2 -1), b, a
a, b, c, d(n2 -1), c, b, a
a, b, c(n2 -1), b, a
a, b(n2 -1), a
a(n2 -1)

I can't understand the de-incrementing and reversal system of this algorithm.
I don't see how it works and I would like someone to explain it to me.
Reply


Messages In This Thread
min() function in iterable index - by OokaydO - Apr-17-2020, 09:24 PM
RE: min() function in iterable index - by OokaydO - Apr-18-2020, 08:57 PM
RE: min() function in iterable index - by OokaydO - Apr-23-2020, 09:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Did you know that map() accepts more than one iterable? DeaD_EyE 2 765 Apr-13-2025, 10:16 AM
Last Post: noisefloor
Question TypeError: argument of type 'NoneType' is not iterable Tajaldeen 7 3,457 Nov-29-2024, 09:45 AM
Last Post: Tajaldeen
  Variable for the value element in the index function?? Learner1 8 3,332 Jan-20-2024, 09:20 PM
Last Post: Learner1
  Index Function not recognized in Python 3 Peter_B_23 1 3,608 Jan-08-2023, 04:52 AM
Last Post: deanhystad
Question how to solve `'TypeError: 'int' object is not iterable`? netanelst 2 3,166 May-24-2022, 12:03 PM
Last Post: deanhystad
  Trying to understand how isinstance(values, collections.Iterable) work. quazirfan 7 7,098 Aug-10-2021, 08:10 AM
Last Post: snippsat
  Cannot unpack non-iterable NoneType object, i would like to ask for help on this. Jadiac 3 11,970 Oct-18-2020, 02:11 PM
Last Post: Jadiac
  subprogram issues: cannot unpack non-iterable function object error djwilson0495 13 9,361 Aug-20-2020, 05:53 PM
Last Post: deanhystad
  Function to return list of all the INDEX values of a defined ndarray? pjfarley3 2 2,816 Jul-10-2020, 04:51 AM
Last Post: pjfarley3
  Why the result of "extended iterable unpacking" with set() is unpredictable? zohanlin 2 2,938 Jun-29-2020, 10:30 AM
Last Post: zohanlin

Forum Jump:

User Panel Messages

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