How to have the console ask the user a question


I’m wondering what I should type out in order to have the console to ask the user a question I typed up.


In Python 2 (the version in use here) we use the raw_input() function which takes a text prompt as an argument:

user = raw_input("Enter some text: ")


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.