This commit is contained in:
2022-11-21 17:23:21 +01:00
parent db7de0a6e8
commit 8657075f55
5 changed files with 110 additions and 2 deletions

17
Montag/schachbrett.py Normal file
View File

@@ -0,0 +1,17 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
spalten = [None for col in "12345678"]
zeilen = [spalten.copy() for row in "ABCDEFGH"]
zeilen[0][0] = 'Turm'
zeilen[0][-1] = 'Turm'
zeilen[-1][0] = 'turm'
zeilen[-1][-1] = 'turm'
for z in zeilen:
for zelle in z:
print(zelle, end=' ')
else:
print()