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

From Whatโ€™s New In Python 3.0, Builtins section second item.

Answer from balpha on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ difference-between-input-and-raw_input-functions-in-python
input() vs raw_input() functions in Python - GeeksforGeeks
September 17, 2025 - It always takes input as a string, just like input() in Python 3. If you want the input in another type (e.g., integer), you need to explicitly convert it using int() or float(). ... val1 = raw_input("Enter the name: ") print(type(val1)) print(val1) val2 = raw_input("Enter the number: ") print(type(val2)) # String val2 = int(val2) # Convert to integer print(type(val2)) print(val2)
๐ŸŒ
nixCraft
cyberciti.biz โ€บ nixcraft โ€บ howto โ€บ python โ€บ python raw_input example (input from keyboard)
Python raw_input Example (Input From Keyboard) - nixCraft
March 31, 2023 - If you are using python 3, you have to do: print (โ€œHello World!โ€) In python 3 print is a built-in function, not a keyword like in older versions. ... print "Welcome to Russian Roulette!!" time.sleep(2) number = raw_input('Enter a number from 1 to 6 ') print ('you entered %s !' % number) q = raw_input ('ARE you ready ?!
Discussions

raw_input function in Python - Stack Overflow
What is the raw_input function? Is it a user interface? When do we use it? More on stackoverflow.com
๐ŸŒ stackoverflow.com
What's the difference between `raw_input()` and `input()` in Python 3? - Stack Overflow
To do that you try to set input to raw_input and ignore name errors. ... Look up the 'six' library for python 2 and 3 compatibility. More on stackoverflow.com
๐ŸŒ stackoverflow.com
Input and raw_input in python
I'm not sure what exactly you're asking... But input() evaluates what you put in, raw_input() returns a string of what you put in. But raw_input() is Python 2, don't use that. Use Python 3 instead. More on reddit.com
๐ŸŒ r/learnpython
5
0
January 8, 2019
How does raw_input and input work?
Easily googable questions are not allowed. Ability to quickly find information is important in learning More on reddit.com
๐ŸŒ r/learnpython
4
4
July 7, 2015
๐ŸŒ
disown
webservertalk.com โ€บ raw_input-python
Python raw_input Function - What is it and Popular Commands!
January 20, 2020 - Python raw_input() function is a way to Read a String from a Standard input device like a keyboard. Today We'll Cover some Examples & Tutorial How to Use it!
๐ŸŒ
Scaler
scaler.com โ€บ home โ€บ topics โ€บ raw_input() in python
raw_input() in Python | raw_input() Function - Scaler Topics
August 22, 2023 - The raw_input() function explicitly converts the input and returns a string as output whereas the input() function takes the value and type of the input you enter as it is without modifying the type.
๐ŸŒ
Initial Commit
initialcommit.com โ€บ blog โ€บ raw-input-python-3
Using raw_input() in Python 3
January 5, 2022 - In the third line of the code above, the raw_input() function prompts the user to type a value and stores that value as a string in the variable fruit. The key thing to remember is that raw_input() always returns a string, even if the user types in other types of values, such as a number: >>> # Python 2 >>> num = raw_input() 12 >>> num '12' >>> type(num) <type 'str'>
Find elsewhere
๐ŸŒ
docs.python.org
docs.python.org โ€บ 3 โ€บ library โ€บ functions.html
Built-in Functions โ€” Python 3.12.0 documentation
The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.,,,, Built-in Functions,,, A, abs(), aiter(), all(), a...
๐ŸŒ
Python Reference
python-reference.readthedocs.io โ€บ en โ€บ latest โ€บ docs โ€บ functions โ€บ raw_input.html
raw_input โ€” Python Reference (The Right Way) 0.1 documentation
The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, EOFError is raised. If the readline module was loaded, then raw_input() will use it to provide elaborate line editing and history features.
๐ŸŒ
Edureka
edureka.co โ€บ blog โ€บ input-in-python
Introduction to Input in Python
August 8, 2023 - raw_input() โ€“ It reads the input or command and returns a string. input() โ€“ Reads the input and returns a python type like list, tuple, int, etc.
๐ŸŒ
Delft Stack
delftstack.com โ€บ home โ€บ howto โ€บ python โ€บ raw_input python
raw_input in Python 3 | Delft Stack
March 11, 2025 - Whether youโ€™re a beginner or ... practical examples and explanations. In Python 2, raw_input() was used to read a line from input, returning it as a string....
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ python โ€บ python_user_input.htm
Python - User Input
#! /usr/bin/python3.11 name = raw_input("Eneter your name - ") city = raw_input("Enter city name - ") print ("Hello My name is", name) print ("I am from ", city)
๐ŸŒ
Python Pool
pythonpool.com โ€บ home โ€บ blog โ€บ python input() vs raw_input(): which one to choose?
Python input() Vs raw_input(): Which One to Choose?
September 24, 2023 - Similar to the input() function, the raw_input() of Python 2 also accepts a string-based answer from the user for a particular prompt.
๐ŸŒ
Medium
medium.com โ€บ almabetter โ€บ python-input-and-raw-input-functions-c5fca1ccbbf6
Python input() and raw_input() function. | by Shubham Dubey | AlmaBetter | Medium
February 10, 2022 - we have raw_input() function it will take different values from the user and return the output in the form of a string irrespective of the input values. For example, this problem in python2 gives string.
๐ŸŒ
Career Karma
careerkarma.com โ€บ blog โ€บ python โ€บ python nameerror: name โ€˜raw_inputโ€™ is not defined solution
Python NameError: name 'raw_input' is not defined Solution
December 1, 2023 - A solution that technically works is to assign the value of raw_input() to the input() function. We can do this using variable assignment. This will let you use a function called raw_input() in your Python 3 code.
๐ŸŒ
TestMu AI Community
community.testmuai.com โ€บ ask a question
Purpose and Usage of raw_input() in Python - TestMu AI Community
November 11, 2024 - What is the purpose of the raw_input function in Python, and how is it used? How does it differ from other input functions like input() in Python, and when should I use raw_input python?
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ What-is-difference-between-raw-input-and-input-functions-in-Python
What is difference between raw_input() and input() functions in Python?
January 7, 2025 - The raw_input() function is present in the Python 2.x version. It is similar to the input() function in Python 3.x. Python 3.x does not have raw_input().