Concantenation and string slicing

CatDude catdude at catfolks.net
Thu Feb 23 18:54:06 EST 2006


On Thu, 23 Feb 2006 14:55:16 -0800, DannyB wrote:

> I've written a program that takes a phrase and spits it back out
> backwards.  My problem is it throws each character on a new line.  I'd
> like the phrase to be on the same line.  Is this possible?

First suggestion: Put a comma at the end of the "print" line:

>         print newMessage,





More information about the Python-list mailing list