Iam reading learning python the hard way, i am doing the first argv exercize and getting an error
Question: In learning python the hard way exercise 13 we import `argv` for the first
time. Here is the code:

    
    
    from sys import argv
    
    script, first, second, third = argv
    
    print 'The script is called:' script
    print 'Your first variable is:' first
    print 'Your second variable is:' second
    print 'Your third variable is:' third
    

And here is the output i am getting:

    
    
    donny@donny:~/Documents/pygame-scripts$ python ex13.py first second third
    Traceback (most recent call last):
      File "ex13.py", line 1, in <module>
        d
    NameError: name 'd' is not defined
    

I can't figure this out. I googled it and checked that i copied the code
exactly. Any help would be greatly appreciated.


Answer: The problem is that you're missing commas between the arguments to `print`.

Try this instead:

    
    
    from sys import argv
    
    script, first, second, third = argv
    
    print 'The script is called:', script
    print 'Your first variable is:', first
    print 'Your second variable is:', second
    print 'Your third variable is:', third
    

**EDIT:**

To make your code compatible with Python 3, use `print(arg1, arg2)` instead of
`print arg1, arg2`.

