Tag: Convert a List of Lists to a List of Tuples
Convert a List of Lists to a List of Tuples
This tutorial will discuss about unique ways to convert a list of lists to a list of tuples. Suppose we have a list of lists. Like this, listOfLists = [[‘John’, 34], [‘Mark’, 23], [‘Suse’, 37], [‘Avni’, 29], [‘John’, 100], [‘John’, 102]] We want to convert this list of lists into a list of tuples, like …