Top "Tuples" questions

In programming, tuples are simple *product types*, representing ordered collections of types.

How to search a list of tuples in Python

So I have a list of tuples such as this: [(1,"juca"),(22,"james"),(53,"xuxa"),(44,"delicia")] I want this list for a …

python search list tuples
Why can't I use a list as a dict key in python?

I'm a bit confused about what can/can't be used as a key for a python dict. dicked = {} dicked[None] = …

python list dictionary tuples hashable
Reference an Element in a List of Tuples

Sorry in advance, but I'm new to Python. I have a list of tuples, and I was wondering how I …

python list reference element tuples
Find the maximum value in a list of tuples in Python

Possible Duplicate: Sorting or Finding Max Value by the second element in a nested list. Python I have a list …

python list tuples
Tuples( or arrays ) as Dictionary keys in C#

I am trying to make a Dictionary lookup table in C#. I need to resolve a 3-tuple of values to …

c# dictionary hashtable tuples
How to form tuple column from two columns in Pandas

I've got a Pandas DataFrame and I want to combine the 'lat' and 'long' columns to form a tuple. <…

python dataframe pandas tuples
What is the pythonic way to unpack tuples?

This is ugly. What's a more Pythonic way to do it? import datetime t= (2010, 10, 2, 11, 4, 0, 2, 41, 0) dt = datetime.datetime(t[0], t[1], t[2], …

python tuples
Pair/tuple data type in Go

While doing the final exercise of the Tour of Go, I decided I needed a queue of (string, int) pairs. …

go tuples
Inserting an item in a Tuple

Yes, I understand tuples are immutable but the situation is such that I need to insert an extra value into …

python insert tuples
Sort tuples based on second parameter

I have a list of tuples that look something like this: ("Person 1",10) ("Person 2",8) ("Person 3",12) ("Person 4",20) What I want produced, is …

python sorting tuples