diff --git a/8/4 - Centering Text.py b/8/4 - Centering Text.py new file mode 100644 index 0000000..efa9e44 --- /dev/null +++ b/8/4 - Centering Text.py @@ -0,0 +1,6 @@ +width = int(input()) +while True: + i = input() + if i == "END": + break + print("."* ((width - len(i) + 1) // 2) + i + "."* ((width - len(i)) // 2))