Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Peter Pearson Newsgroups: comp.lang.python Subject: Re: Python Basics Date: 4 Oct 2014 17:42:41 GMT Lines: 32 Message-ID: References: <3c9504c9-6906-4358-b14c-5764bba70a65@googlegroups.com> <78au2a12nlq6nipske1a327p14dvgvakug@4ax.com> <542f48e7$0$13014$c3e8da3$5496439d@news.astraweb.com> X-Trace: individual.net TPITrLoTeChwrXwan6ez7Qvgeo6aXCS6LsO0/stS+57A7zuErK Cancel-Lock: sha1:5VfzWJ+WAi9J8LRYWUygbMYRvr0= User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.lang.python:78700 On Sat, 04 Oct 2014 11:09:58 +1000, Steven D'Aprano wrote: > Chris Angelico wrote: > >> On Sat, Oct 4, 2014 at 8:54 AM, Seymore4Head >> wrote: > >>> for i in range(1,10): >>> print (str(i)*i) >> >> Seymour, please don't do this. When you "help" someone by just giving >> him the answer to a homework problem, you get him past his immediate >> issue of "I need to submit my homework for this problem". That lets >> him get through his course without understanding the code he's >> creating > [...] > > In fairness to Seymour, at this extremely basic level, it's really hard to > explain to somebody how to solve a problem without giving them the answer. > > While I don't condone mindless parroting of work that others have done, > remember that for tens of thousands of years, being shown how to do > something, then imitating that, has been the most effective way for people > to learn. Dropping hints is typically the least effective learning method. This has gotta be the most civilised newsgroup on the Net. Kudos to you stalwarts who keep it that way. Personally, I thought Tobiah's hint, printing 'a'*4, would be just what the OP needed. -- To email me, substitute nowhere->runbox, invalid->com.