Some Print formatting in Python

Some ways of working with strings

I’m haven’t got time today to write very much on this blog. So …

Here’s a text file you can download which has a Python program that uses a few of the different ways that we can work with strings.

What I’d like you to do is to edit this with IDLE. Make some changes and have a play with the way the different printing commands and options work.

Things to try:

See if you can use the multi-line printing approach to make some ascii art.

Then you could try wrting a program that asks the user a series of questions and then prints output which is formatted in an interesting way.

Can you use these methods to create a table with headings and neat layout?

happy hacking



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: