How do I center my text in python? I have a title and a description, and wan't to center it all in my output.
persianprez
0
Junior Poster in Training
Recommended Answers
Jump to PostUse something like that ...
s = "My Title" width = 70 s = s.center(width) print( s )
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.