Skip to content

Python run error in calling raw_input for SurveyProject/surveyproject_pt1.py #5

@mchesler613

Description

@mchesler613

I encountered a Python run error in calling raw_input for SurveyProject/surveyproject_pt1.py as follows:
Traceback (most recent call last): File "surveyproject_pt1.py", line 25, in <module> response = raw_input(survey[x] +": ") NameError: name 'raw_input' is not defined
By replacing raw_input() with just input(), I was able to execute the program w/o any error.

Since raw_input() is being called for the other 3 parts of the project, I had to replace it there too. Thanks for your attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions