Create 4 - Centering Text.py
This commit is contained in:
parent
c9cad65d1a
commit
b3fb5892cc
6
8/4 - Centering Text.py
Normal file
6
8/4 - Centering Text.py
Normal file
@ -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))
|
Loading…
Reference in New Issue
Block a user