Good afternoon everyone! I am currently working on a diagram, where each element is a list. For the list entry, I made the following command line:
diagrama_entrada=[]
x=True
while x:
l=input()
if not l.isdigit():
lixta=l.split(" ")
diagrama_entrada.append(lixta)
else:
x=False
for i in range(int(l)):
num_sequencias=int(l)
num_colunas=len(diagrama_entrada[0][0])
num_linhas=len(diagrama_entrada) #Linhas
print(diagrama_entrada)
for j in range(len(diagrama_entrada)):
print(" ".join(diagrama_entrada[j]))
The entry is of the type indicated in this link link :
However, when I try to parse the lists individually, they appear like this: [[+ + - + -]], Eur-lex.europa.eu eur-lex.europa.eu Eur-lex.europa.eu eur-lex.europa.eu Eur-lex.europa.eu eur-lex.europa.eu Eur-lex.europa.eu eur-lex.europa.eu Eur-lex.europa.eu eur-lex.europa.eu eur-lex.europa.eu eur-lex.europa.eu
That is, the program is disappearing with some empty spaces of the diagram, so that, traversing with a for the list, it gives error.
How could I fix this?