xxxxxxxxxx
tuple_name = (1, 2, 3) # Example tuple
first_element = tuple_name[0]
print(first_element)
xxxxxxxxxx
List<(string, int)> tupleList = new List<(string, int)>()
{
("Apple", 10),
("Banana", 20),
("Orange", 30)
};
string firstElement = tupleList[0].Item1;