0
How do i print this in python but in center
###### #### ### ## #
4 Answers
+ 1
You can do like print("=====")
print(" === ")
Hashtag (#) may not give you good result
+ 1
You can use .center() method.
print("#####".center(max_str_length))
e.g.
print('hi'.center(9))
print('world!'.center(9))
output:
hi
world!
0
Ananaya Jemberu Jayakrishnađźđł Russ this is my
for i in range(5):
for j in range(i-1) :
print(i)
for i2 in range(5):
for j2 in range(i2-1) :
print(i)
print()
0
is this right