Raw Input

The raw_input Function The raw_input([prompt]) function reads one line from standard input and returns it as a string (removing the trailing newline).

#!/usr/bin/python

str = raw_input("Enter your input: ");
print "Received input is : ", str

results matching ""

    No results matching ""