csc-python-solutions/08/4 - Centering Text.py
2021-02-18 17:49:56 +01:00

7 lines
156 B
Python

width = int(input())
while True:
i = input()
if i == "END":
break
print("."* ((width - len(i) + 1) // 2) + i + "."* ((width - len(i)) // 2))