[Tutor] Hello World in Python without space

Emile van Sebille emile at fenx.com
Mon Jul 11 15:03:26 CEST 2011


On 7/10/2011 4:12 AM Robert H said...
> Dear all,
>
>
> I have Python 3.2 installed on Windows 7. I am a complete beginner
> playing around with the basic functions. My problem is the following script:
>
>
> name="world"
> print("Hello", name,"!")

print("Hello", name+"!")

Alan mentioned using concatenation as well and "".join() is generally 
preferred, particularly when many strings are involved.

Emile




More information about the Tutor mailing list