csc-python-solutions/8/4 - Centering Text.py
2021-02-18 10:29:14 +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))