Aug-29-2018, 04:19 PM
Hi all
Im trying to join 2 items together from a 2D array without a separator
[8, 'S']
8
S
what I want is 8S as the new variable to print.
Im sure im being dim hope someone can help TIA
Jai
Im trying to join 2 items together from a 2D array without a separator
x = [[2, "D"], [6, "H"], [8, "S"], [5, "H"]] print(x[2]) print(x[2][0]) print(x[2][1])Im wanting the output to be assigned to a variable for printing, but it comes out as
[8, 'S']
8
S
what I want is 8S as the new variable to print.
Im sure im being dim hope someone can help TIA
Jai