Re: [Tutor] equivalent of 'last' in perl

2005-10-28 Thread bob
At 09:50 PM 10/27/2005, Johan Meskens CS3 jmcs3 approximated: >what is Python's equivalent of 'last' in perl? > >if flag == 1: > break Yes. If flag is either 1 or 0 you may code it thus: if flag: break That's not the whole truth. Most types have a value that is seen as false in b

[Tutor] equivalent of 'last' in perl

2005-10-27 Thread Johan Meskens CS3 jmcs3
hi is that if flag == 1: break ? thanks jmcs3 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor