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
#1
i know how to get the keys from s dictionary. but how to do that for a named tuple?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
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,791 Mar-31-2022, 07:13 PM
Last Post: Skaperen
  code with no tuple gets : IndexError: tuple index out of range Aggam 4 2,967 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,339 May-21-2019, 11:39 AM
Last Post: avorane
  Newbie question for sum the specific element in named tuple zydjohn 1 4,293 Dec-12-2017, 07:29 PM
Last Post: buran
  Newbie question for sorting named tuple list zydjohn 3 7,928 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