Good point on order of keyword introduction affecting ease.  I agree with
yours, though having introduced functions first allows me to show how to
use return to short-circuit a loop without having to add the extra syntax
of break so early.

Dr. Andrew N. Harrington
  Computer Science Department
  Graduate Program Director g...@cs.luc.edu
  Loyola University Chicago
  529 Lewis Towers, 111 E. Pearson St. (Downtown)
  417 Cudahy Science Hall (Rogers Park campus)
http://www.cs.luc.edu/~anh
Phone: 312-915-7982
Fax:    312-915-7998
ahar...@luc.edu (as professor, not gpd role)

On Fri, Oct 2, 2015 at 11:33 AM, Laura Creighton <l...@openend.se> wrote:

> I have found that if you begin teaching:
>
> for item in lst:
>
> and
>
> for letter in word:
>
> and then add break, and continue,
>
> and then teach
>
> for x in range(y):
>
> and then teach
>
> while (something):
>
> it all goes better than if you begin with while loops.
>
> But I don't know whether this means this is a better order to teach in,
> or simply a better order for _me_ to teach in.
>
> Laura
>
> _______________________________________________
> Edu-sig mailing list
> Edu-sig@python.org
> https://mail.python.org/mailman/listinfo/edu-sig
>
_______________________________________________
Edu-sig mailing list
Edu-sig@python.org
https://mail.python.org/mailman/listinfo/edu-sig

Reply via email to