Skip to content Skip to sidebar Skip to footer

How Can I Ask For User Input And Use That Input For This Text Summarizer I Created?

I have created a text summarizer based on a code I found on Github. I'm trying to have to script ask for the title for the text and ask for the actual text. title = ''' ''' con

Solution 1:

In python 2.x, you can do:

usertext = raw_input("message here")

for python 3.x:

usertext = input("message here")

Solution 2:

Are you asking for a way to get user inputs as to the title and the content?

http://docs.python.org/2/library/functions.html#raw_input

title = raw_input("Please input your title here: ")
content = raw_input("Please enter your content here: ")

EDIT: Duplicate of Python: user input and commandline arguments, more or less

Post a Comment for "How Can I Ask For User Input And Use That Input For This Text Summarizer I Created?"