Beginner Tutorials
Ian Foote
ian at feete.org
Fri Jan 18 11:44:46 EST 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.
>
> 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
More information about the Python-list
mailing list