Give a try to:<div>codecademy</div><div>or</div><div>learnstreet</div><div><br></div><div>Much easier to start, much more engaging to continue.</div><div>Going to test it with youngsters.</div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Sun, Dec 16, 2012 at 12:52 AM, Jurgis Pralgauskis <span dir="ltr"><<a href="mailto:jurgis.pralgauskis@gmail.com" target="_blank">jurgis.pralgauskis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
currently more and more schools are trying Py,<br>
so studens read tutorial docs from time to time...<br>
and one of main programming (architecture) subjects starts with quite<br>
a mathematical and unpractical example..<br>
<br>
<a href="http://docs.python.org/3/tutorial/controlflow.html#defining-functions" target="_blank">http://docs.python.org/3/tutorial/controlflow.html#defining-functions</a><br>
It's like teaching to pilot airplane, prior to bicycle and car :)<br>
<br>
<br>
I'd propose some simple examples at first:<br>
like in <a href="http://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python_3/Defining_Functions" target="_blank">http://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python_3/Defining_Functions</a><br>
or <a href="http://www.cplusplus.com/doc/tutorial/functions/" target="_blank">http://www.cplusplus.com/doc/tutorial/functions/</a><br>
<br>
def greeting( person ):<br>
       print( "Hello", person )<br>
<br>
def add(a, b):<br>
      result = a+b<br>
      return result<br>
<br>
z = add(3, 5)<br>
# could aslso graphically show, how data (arguments/results) travel<br>
# as in C++ example<br>
<br>
<br>
def absolute_value(n):<br>
    if n < 0:<br>
        n = -n<br>
    return n<br>
<br>
def count_down( n ):<br>
     while n > 0:<br>
        print( n )<br>
        n = n-1<br>
<br>
def average( mylist ):<br>
    return sum(mylist) / len(mylist)<br>
<br>
def decide_on_scholarship( marks ):<br>
    avg = average(marks)<br>
    if avg > 9.5:<br>
        return 1000<br>
    elif avg >= 8:<br>
        return 200<br>
    else:<br>
        return 0<br>
<br>
<br>
Maybe there is some other list, where it would be more appropriate to<br>
discuss this?<br>
--<br>
Jurgis Pralgauskis<br>
tel: 8-616 77613;<br>
Don't worry, be happy and make things better ;)<br>
<a href="http://galvosukykla.lt" target="_blank">http://galvosukykla.lt</a><br>
_______________________________________________<br>
Edu-sig mailing list<br>
<a href="mailto:Edu-sig@python.org">Edu-sig@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/edu-sig" target="_blank">http://mail.python.org/mailman/listinfo/edu-sig</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Roberto<br>
</div>