how can I run python interactively?

graham.abbott at gmail.com graham.abbott at gmail.com
Thu Nov 3 01:42:29 EST 2005


try something like ->

    s = raw_input("Please Press a button...")
    #s is the string they type.

Although i believe i remember a PEP that said they were removing
raw_input so perhaps

    print "Please Press A button..."
    s = sys.stdin.readline()

would be better, note the above requires you to 'import sys'




More information about the Python-list mailing list