Hi,
I've taught a python course with some positive results to high school students
with zero experience in programming. Now I am making these course materials
(slides in English and lecture videos in Cantonese) freely available as a
contribution back to the community
(http://www.istudycenter.o
Hi all,
This is a set of training materials I used to successfully teach Python to kids
as little as 10 years old. It was a success because the kids didn't just finish
the course, they independently completed most of the coding challenges by
applying the knowledge they had learned.
The first f
Hi,
I can add new variables to user-defined classes like:
>>> class Test:
... pass
...
>>> a=Test()
>>> a.x=100
but it doesn't work if the instances belong to a built-in class such as str or
list:
>>> a='abc'
>>> a.x=100
Traceback (most recent call last):
File "", line 1, in
Attribu
Hi Peter,
Thanks a lot for your excellent explanation!
--
https://mail.python.org/mailman/listinfo/python-list
Hi
I'm aware that we can use 'pass' as an empty code block. But why doesn't python
allow a code block to be empty and thus eliminate the need for this null
statement?
thanks in advance
--
https://mail.python.org/mailman/listinfo/python-list
On Saturday, July 23, 2016 at 9:49:51 AM UTC+8, Steven D'Aprano wrote:
> Because it cannot tell the difference between an empty code block and
> failing to indent the code block:
>
> for x in sequence:
> print('loop')
Thanks for the excellent answer!
--
https://mail.python.org/mailman/listinfo/
Hi,
I've made an online python learning environment available at
https://p4kweb.appspot.com
Please take a look and let me know what you think :-)
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
If you're interested, please get it for free at:
https://www.amazon.com/Yes-Kids-can-learn-Python-ebook/dp/B084CY2L43/ref=sr_1_3
This is a set of training materials I used to successfully teach Python to kids
as little as 10 years old. The online learning environment are freely available
at