Nov-17-2019, 12:06 PM
Do you mean this?
Newlist = [len(item[1]) for item in file]
List Comprehension - Creating a list of the length of an item help
|
|
Messages In This Thread |
List Comprehension - Creating a list of the length of an item help - by paul41 - Nov-16-2019, 05:37 PM
RE: List Comprehension - Creating a list of the length of an item help - by ibreeden - Nov-17-2019, 12:06 PM
RE: List Comprehension - Creating a list of the length of an item help - by perfringo - Nov-18-2019, 10:21 AM
|