How do I use raw_input in Python 3?

python, python-3.x

Solution

Starting with Python 3, `raw_input()` was renamed to `input()`.

From What’s New In Python 3.0, Builtins section second item.

Problem

In Python 2: ``` raw_input() ``` In Python 3, I get an error: NameError: name 'raw_input' is not defined

Original source