[Tutor] input() on IDLE?
alan.gauld@bt.com
alan.gauld@bt.com
Mon, 4 Sep 2000 17:38:02 +0100
> I've been trying to figure out how to use raw_input()/input()
> in an IDLE session.
Works OK in the Windows version of IDLE 0.5
> Here's the sample program:
> And a partial output:
>
> ###
> Hello world!
> 42
> # but nothing happens.
> ###
I get:
Program:
print "Hello world"
x = input()
print "x = ", x
Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
IDLE 0.5 -- press F1 for help
>>>
Hello world
42
x = 42
Have you tried putting a prompt into the input() just to check
its really getting there:
Alan G.