+ 1
String formatting [Py]
I want to use this code: print("{:^20}".format("Welcome")) Out: " Welcome " but I want an output like this: "------Welcome------" I mean, replacing the blank spaces with another symbol. Can you help me?
1 Respuesta
0
Ty <3
I want to use this code: print("{:^20}".format("Welcome")) Out: " Welcome " but I want an output like this: "------Welcome------" I mean, replacing the blank spaces with another symbol. Can you help me?