On Wed, Jan 7, 2009 at 4:45 PM, WM. <[email protected]> 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
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to