Hi I would like to check if there is any way to get subitem on a array for example below.
Array = [('a',1,'aa'),('b',2,'bb'),('c',3,'cc')]
If would like to print out all 2nd subitem for Array like this [ 1, 2, 3]
Or maybe 3rd subitem like this [ aa , bb, cc]
Please help me... Thank you so much
You can do this by creating a function to get the nth item in a tuple (or list), then calling that function inside a loop like so: