A quick warning, this is a pretty verbose answer.
typing is sometimes difficult, I had problems with this when I first started. What do you want is a few spaces between two variables after you type them correctly? There are many ways to do this, as shown in the answers above.
This is your code:
count = 1 conv = count * 2.54 print count, conv
It outputs the following:
1 2.54
If you need gaps between them, you can do it in a naive way by inserting a space between them. The variables count and conv must be converted to string types in order to concatenate them (concatenate). This is done using str ().
print (str(count) + " " + str(conv))
To do this, this is a newer, more pythonic way, we use the% sign in combination with a letter to indicate the type of value that we use. Here I use underscores instead of spaces to show how many there are. Modulo before the last values simply tells python to insert the following values in the order in which we specified.
print ('%i____%s' % (count, conv))
I used% i for count, because it is an integer, and% s for conv, because using% i in this case will give us "2" instead of "2.54". Technically, I could use as% s, but all this is good.
Hope this helps!
Joseph
PS if you want to complicate your formatting, you should look at attractive text for a lot of text, for example, dictionaries and lists of tuples (imported as pprint), as well as which makes automatic tabs, spaces and other cold garbage.
Here's more info on the lines in python docs. http://docs.python.org/library/string.html#module-string