A somewhat similar question was asked on here but the answers did not help.
I have a list of lists, specifically something like..
[[tables, 1, 2], [ladders, 2, 5], [chairs, 2]]
It is meant to be a simple indexer.
I am meant to output it like thus:
tables 1, 2
ladders 2, 5
chairs 2
I can’t get quite that output though.
I can however get:
tables 1 2
ladders 2 5
chairs 2
But that isn’t quite close enough.
Is there a simple way to do what I’m asking? This is not meant to be the hard part of the program.
The following will do it:
where
lis your list.For your input, this prints out