[Tutor] Interactive programming.
Kent Johnson
kent37 at tds.net
Wed Jan 7 23:37:46 CET 2009
On Wed, Jan 7, 2009 at 4:45 PM, WM. <wferguson1 at socal.rr.com> wrote:
> Norman Khine wrote:
>>
>> >>> i = 5
>> >>> j = 7
>> >>> if i <= j:
>> ... print 'nudge', 'nudge'
>> ... else:
>> ... print 'whatever'
>> ...
>> nudge nudge
>
> The above is just what the tutorials said would happen.
> Can anyone give me a step-by-step in IDLE 2.6 that would make this happen?
Type these characters exactly into the IDLE shell window, where
<ENTER> is the return or Enter key and <BACKSPACE> is the backspace or
delete key (the one next to the ]} key not the one in the numeric
keypad):
if i<=j:<ENTER>print 'nudge'<ENTER><BACKSPACE>else:<ENTER>print
'whatever'<ENTER><ENTER>
Kent
More information about the Tutor
mailing list