You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elif col_width == 'uneven':
col_widths = []
for col in table_data:
longest = self.get_string_width(col)
for element in table_data[col]:
if longest < self.get_string_width(element):
longest = self.get_string_width(element)
col_widths.append(longest + 4)
col_width = col_widths
When i try to specify the parameter uneven, it shows this error
line 125, in create_table
col_width = get_col_widths()
line 86, in get_col_widths
for col in range(len(table_data[0])): # for every row
KeyError: 0
The text was updated successfully, but these errors were encountered: