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.
www.usingpython.com
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 + "!")
HelloIan!
Your final print should be:
print("Hello " + name + "!")
Regards,
Ian F
--
http://mail.python.org/mailman/listinfo/python-list