guti
This commit is contained in:
17
Montag/schachbrett.py
Normal file
17
Montag/schachbrett.py
Normal 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()
|
||||
Reference in New Issue
Block a user