Another n00b: Removing the space in "print 'text', var"

bruno at modulix onurb at xiludom.gro
Mon Feb 13 04:23:07 EST 2006


HappyHippy wrote:
> More of a minor niggle than anything but how would I remove the
> aforementioned space?


> eg.
> strName = 'World'
> print 'Hello', strName, ', how are you today?'


Already got an anwser, now just a coding-style suggestion: hungarian
notation is *evil*. And even *more* evil with a dynamically-typed language.

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list