Mar-01-2018, 06:54 PM
(Mar-01-2018, 06:42 PM)Wilminer4 Wrote: Oh okay, I'll try that and sorry about using Python 2, I made this at a website called codehs.com because we use it in class. I'm ahead of other people, so I decided to mess around. Thanks for the info I'll try it.
I tried what you said and it didnt't work...
I see what's going on. Try using the raw_input() function instead of input().
From the 2.7 docs:
Quote:input([prompt])
Equivalent to eval(raw_input(prompt)).
This function does not catch user errors. If the input is not syntactically valid, a SyntaxError will be raised. Other exceptions may be raised if there is an error during evaluation.
If the readline module was loaded, then input() will use it to provide elaborate line editing and history features.
Consider using the raw_input() function for general input from users.