Ich kann nicht verstehen, warum mein Code diesen Fehler anzeigt.Python: IndexError: Tupel-Index außerhalb des Bereichs
IndexError: tuple index out of range
Code:
l = ['Simpson', ',', 'Bartholomew', 'Homer', 'G400', 'Year', '2']
x = '{}'* len(l)
print(x)
x.format(l)
print(x)
Ähnliche: [* Was? bedeutet der Star-Operator? *] (http://stackoverflow.com/q/2921847/416224) – kay