Just a moment ...
I can't repeat your problem, both PythonWin and IDLE give a perfect one line result!
I tried to mimic your predicament ...
test = raw_input ("Input word")
print "Why "+ test +" there a line break all the time?"
# add a newline to the end for testing
test = test + '\n'
print "Why "+ test +" there a line break all the time?"
# simple way to remove a trailing newline
if '\n' in test:
test = test[:-1]
print "Why "+ test +" there a line break all the time?"
Last edited by vegaseat; Apr 26th, 2010 at 8:21 am. Reason: changed code tags
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
Offline 5,792 posts
since Oct 2004