Re: [Tutor] Teaching Python

2016-01-06 Thread Steven D'Aprano
On Wed, Jan 06, 2016 at 07:04:24PM +, Alan Gauld wrote: > On 06/01/16 18:23, yehudak . wrote: > > My grandson Guy (8th grader) is learning Python at school. That's what made > > me teach myself Python programming as well. > > Yesterday he asked my help in his homework: > > > > Write a FOR-loop

Re: [Tutor] Teaching Python

2016-01-06 Thread yehudak .
Ahlan Tahir, That's EXACTLY my point. Thank you, Yehuda On Wed, Jan 6, 2016 at 10:59 PM, Tahir Hafiz wrote: > Yes that is a huge for loop. > I can do it like this but I won't try: > >>> for num in list(range(100)): > >>> print(num) > > Sort of strange that the school wanted so much loopin

Re: [Tutor] Teaching Python

2016-01-06 Thread Tahir Hafiz
Yes that is a huge for loop. I can do it like this but I won't try: >>> for num in list(range(100)): >>> print(num) Sort of strange that the school wanted so much looping for your grandson, they could have picked a lower number to demonstrate a for loop. By the way there is the tqdm module

Re: [Tutor] Teaching Python

2016-01-06 Thread Danny Yoo
On Wed, Jan 6, 2016 at 10:23 AM, yehudak . wrote: > My grandson Guy (8th grader) is learning Python at school. That's what made > me teach myself Python programming as well. > Yesterday he asked my help in his homework: > > Write a FOR-loop that prints all numbers up to 100 Try to say explici

Re: [Tutor] Teaching Python

2016-01-06 Thread Peter Otten
yehudak . wrote: > My grandson Guy (8th grader) is learning Python at school. That's what > made me teach myself Python programming as well. > Yesterday he asked my help in his homework: > > Write a FOR-loop that prints all numbers up to 100 > > Thank you, the gods of Ctrl+C Did you mean to

Re: [Tutor] Teaching Python

2016-01-06 Thread Alan Gauld
On 06/01/16 18:23, yehudak . wrote: > My grandson Guy (8th grader) is learning Python at school. That's what made > me teach myself Python programming as well. > Yesterday he asked my help in his homework: > > Write a FOR-loop that prints all numbers up to 100 And the question is? Python has

[Tutor] Teaching Python

2016-01-06 Thread yehudak .
My grandson Guy (8th grader) is learning Python at school. That's what made me teach myself Python programming as well. Yesterday he asked my help in his homework: Write a FOR-loop that prints all numbers up to 100 Thank you, the gods of Ctrl+C Yehuda