On 16/05/15 05:11, Fast Primes wrote:
How do I set Python to print fixed length ascii--whereby all characters have the exact same length?
It's not clear what you mean. Do you mean you want to use the ASCII character set? That limits all characters to 7 bits long. If so we probably need a little bit more context about what you are doing with these characters. And whether they are ASCII to start with or if you need to do some data conversion first. What/how/where you are 'printing' them. Or do you really mean you want a fixed width font so that all characters take up the same amount of screen space? In that case the issue lies with your environment and not with Python. How are you running the program? (OS, Tools, Terminal type etc) Or if you are writing a GUI how you are displaying the text - what kind of widget?. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor