ian at feete.org
Fri Jan 18 17:44:46 CET 2013
On 18/01/13 14:47, Rik wrote:
> Hi, I've developed a website for beginners to Python. I'd appreciate any comments or criticism. It's still under development, and should be finished in the next few months. Oh, and it's free to use.
Your example code on http://usingpython.com/variables/ is missing a space:
#Whatever the user enters is stored in a variable called ‘name’.
name = input("What is your name? ")
# Remember how we can use + to ‘add’ strings together?
print("Hello" + name + "!")
Here's my output:
>>> name = input("What is your name? ")
What is your name? Ian
>>> print("Hello" + name + "!")
Your final print should be:
print("Hello " + name + "!")
More information about the Python-list