I am having trouble with Python 2.5.4 where I can't get it to run from my window correctly. I have uninstalled and reinstalled and I am just trying to do the problem set 0. [ x = raw_input('When were you born?') y = raw_input('What is your last name?' ]
What was typed in the post won't work. raw_input is a function. Functions are called with their name and any values that you're passing to them in parentheses. Even if you're not passing any values, you still need the parentheses. In Python, the square brackets are used for lists. You'll get to them in due time. These lines of code should get you going. foo = raw_input( "Type in something" ) print foo
Thank you! I appreciate it! It was definitely a user error and I was getting frustrated with it.
One trick that will save you some aggravation: These are fundamentally dumb machines. They can only do what they're told to, not what you want. If the book says use certain characters, the reason is that they're all the machine can handle.
Join our real-time social learning platform and learn together with your friends!