Python Forum
how to get the keys in a named tuple
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get the keys in a named tuple
#5
(Mar-24-2020, 05:29 PM)Skaperen Wrote: it's just not indexed in a lookup manner by concept.

C'mon, really in this case you are not right. You ask about namedtuple. First thing you can do is check the docs and it's clear where you should look. It's not that long read. If you just have made the effort...
I've answered, no problem, but one should try....
Maybe you are confusing the Language reference and the Library refernce

and of course there is the official Python tutorial and the Python HOWTOs
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
how to get the keys in a named tuple - by Skaperen - Mar-23-2020, 08:18 PM
RE: how to get the keys in a named tuple - by buran - Mar-23-2020, 08:26 PM
RE: how to get the keys in a named tuple - by buran - Mar-24-2020, 05:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  convert a named tuple to a dictionary Skaperen 13 3,700 Mar-31-2022, 07:13 PM
Last Post: Skaperen
  code with no tuple gets : IndexError: tuple index out of range Aggam 4 2,890 Nov-04-2020, 11:26 AM
Last Post: Aggam
  How to get first line of a tuple and the third item in its tuple. Need Help, Anybody? SukhmeetSingh 5 3,287 May-21-2019, 11:39 AM
Last Post: avorane
  Newbie question for sum the specific element in named tuple zydjohn 1 4,241 Dec-12-2017, 07:29 PM
Last Post: buran
  Newbie question for sorting named tuple list zydjohn 3 7,819 Dec-11-2017, 10:13 PM
Last Post: zydjohn

Forum Jump:

User Panel Messages

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