Closed NaelsonDouglas closed 5 months ago
The problem The code was iterating on the list 'outputs' manually using for i, element in enumerate(outputs
for i in range(len(row))
and accessing the data manually as:
row[i]
but Python has a built-in manner to deal with it using the method enumerate
for index, element in enumerate(row):
and thus making the access to the data easier
The solution Changed the manual indexer to the enumerated iterator.
thanks!
The problem The code was iterating on the list 'outputs' manually using for i, element in enumerate(outputs
and accessing the data manually as:
but Python has a built-in manner to deal with it using the method enumerate
and thus making the access to the data easier
The solution Changed the manual indexer to the enumerated iterator.