There is:
number = [(7,)] what do i need to get
>>> 7 number = [(7, 5), (8, 'g') ] otvet = [] for i in number: for j in i: if str(j).isdecimal(): otvet.append(j) print(" ".join(str(x) for x in otvet)) Short answer:
number[0][0] because number[0] first item in the list, i.e. (7,) , from which you need to take the first element (index [0] ) tuples.
number[0][0], - this is in fact a multidimensional array. - greg zakharov