Re: [Tutor] Different between pass & continue

2010-05-18 Thread Steven D'Aprano
On Tue, 18 May 2010 10:34:16 pm M. Bashir Al-Noimi wrote: > Hi All, > > > I couldn't understand the difference between pass and continue > keywords, could you explain to me? "pass" is a do-nothing statement. It literally does nothing. "continue" is only allowed inside a for-loop or while-loop, a

Re: [Tutor] Different between pass & continue

2010-05-18 Thread Christian Witts
M. Bashir Al-Noimi wrote: Hi All, I couldn't understand the difference between pass and continue keywords, could you explain to me? Taken from the docs at http://docs.python.org/tutorial/controlflow.html The continue statement continues the next iteration of a loop for eg. for line in fil

[Tutor] Different between pass & continue

2010-05-18 Thread M. Bashir Al-Noimi
Hi All, I couldn't understand the difference between pass and continue keywords, could you explain to me? -- Best Regards Muhammad Bashir Al-Noimi My Blog: http://mbnoimi.net ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscri