Breaking Out

Sean 'Shaleh' Perry shalehperry at attbi.com
Fri Aug 23 15:12:14 EDT 2002


On Friday 23 August 2002 12:04 pm, Simon Faulkner wrote:
> What is the polite way to skip to the end of a long if statement?
>
> if x ==y:
>   blah
>   blah
>   blah
>   blah
>   blah
>   blah
>   I WANT OUT!
>   blah
>   blah
>   blah
>   blah
>
> Simon

'break' is the statement you want.




More information about the Python-list mailing list