Using raw_input() in Python 3
initialcommit.com › blog › raw-input-python-3Jan 05, 2022 · input() function in Python 3. The input() function in Python 3 is exactly the same as raw_input() in Python 2, just with a different name. You can use the input() function in Python 3 in the same way as raw_input() from Python 2: >>> # Python 3 >>> a = input("Enter a fruit: ") Enter a fruit: orange >>> a 'orange' >>> num = input("Enter a number: ") Enter a number: 15 >>> num '15' >>>