Error makes no sense
alirazzes (0)

This is what came up in the code when there is nothing wrong with the code and everything is defined.

Traceback (most recent call last):
File "", line 4, in <module>
name = input("Hello, Traveller! I'm Alderon. What is your name?")
File "<string>", line 1, in <module>
NameError: name 'James' is not defined

You are viewing a single comment. View All
JustARatherRidi (191)

The code you have written seems to be for Python 3, but you've put it in a Python 2 repl.

So, all you need to do is copy the code and paste it into a Python 3 repl, and you should be good to go!

Once you've done that, your repl should look like this one: