While loop - print several times but on 1 line.
claudio.grondi at freenet.de
Thu Jan 26 11:55:07 CET 2006
> I think I should paste some of the programs code a little more of what I
> var = 0
> while var <= 5:
> print a[t[var]]
> var = var +1
> a is a dectionary (very big) and t is a string of text. (if that's
> important right now).
> I'm just trying to make the value of a[t[var]] print on one line if that
> makes any sense...
> Sorry if I'm not explaining this very well and if my examples aren't
> very good, I am trying.
I mean that what you are looking for is:
Notice the last comma in the line above.
More information about the Python-list