Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Im trying to receive input from the user but I keep getting this error. Why do I get this error?

Why do I get this error and how can I fix it? Please & thanks

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Your error comes from the fact that you are running Python 2 (which is now obsolete, consider upgrading to Python 3), where input reads a string from stdin and then eval it. To have the desired effect (that is, what you would get in Python 3 with input), you should use raw_input instead.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading