How to have the console ask the user a question


#1

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


#2

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: ")

#3

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