[Tutor] (no subject)
bob gailer
bgailer at gmail.com
Tue Feb 7 20:24:03 CET 2012
Do Not Use (no subject) as a subject!
Read the manual before asking questions like this. If you do not
understand the documentation tell us what you do not understand.
On 2/7/2012 1:50 PM, Debashish Saha wrote:
> for i in range(1, 8):
> print(i)
> if i==3:
> break
> else:
> print('The for loop is over')
>
>
> Output:
> 1
> 2
> 3
>
> Question:but after breaking the for loop why the else command could not work?
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
--
Bob Gailer
919-636-4239
Chapel Hill NC
More information about the Tutor
mailing list