Tabelle
Verfasst: Mittwoch 9. November 2011, 18:35
Hallo,
ich hab hier eine Tabelle erstellt und will die möglichkeit haben, mit .index z.B. die einzelnen strings zu bearbeiten.
Ist das so möglich?
bzw. kann man den print befehl iwie verkürzen?
Gruß
Eric
ich hab hier eine Tabelle erstellt und will die möglichkeit haben, mit .index z.B. die einzelnen strings zu bearbeiten.
Ist das so möglich?
bzw. kann man den print befehl iwie verkürzen?
Code: Alles auswählen
l01 = ["o", "x", "x", "w", "w", "w", "w", "w", "x", "x", "o"]
l02 = ["x", "x", "x", "x", "x", "w", "x", "x", "x", "x", "x"]
l03 = ["x", "x", "x", "x", "x", "x", "x", "x", "x", "x", "x"]
l04 = ["w", "x", "x", "x", "x", "r", "x", "x", "x", "x", "w"]
l05 = ["w", "x", "x", "x", "r", "r", "r", "x", "x", "x", "w"]
l06 = ["w", "w", "x", "r", "r", "k", "r", "r", "x", "w", "w"]
l07 = ["w", "x", "x", "x", "r", "r", "r", "x", "x", "x", "w"]
l08 = ["w", "x", "x", "x", "x", "r", "x", "x", "x", "x", "w"]
l09 = ["x", "x", "x", "x", "x", "x", "x", "x", "x", "x", "o"]
l10 = ["x", "x", "x", "x", "x", "w", "x", "x", "x", "x", "o"]
l11 = ["o", "x", "x", "w", "w", "w", "w", "w", "x", "x", "o"]
print(l01)
print(l02)
print(l03)
print(l04)
print(l05)
print(l06)
print(l07)
print(l08)
print(l09)
print(l10)
print(l11)Eric