Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'programmer': 0.03; 'output': 0.05; 'subject:Python': 0.06; 'assignment': 0.07; 'damages': 0.07; "people's": 0.09; 'cc:addr:python-list': 0.11; 'displayed.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "he'll": 0.16; 'integer.': 0.16; 'please!!': 0.16; 'stuff.': 0.16; 'triangle': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'print': 0.22; 'creating': 0.23; 'either.': 0.24; 'integer': 0.24; 'lets': 0.24; 'cc:2**0': 0.24; 'world,': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; "doesn't": 0.30; 'specified': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'gives': 0.31; 'code': 0.31; 'this.': 0.32; 'supposed': 0.32; 'run': 0.32; 'trouble': 0.34; 'received:google.com': 0.35; "he's": 0.36; 'should': 0.36; 'implement': 0.38; 'issue': 0.38; 'sure': 0.39; 'either': 0.39; 'called': 0.40; 'skip:u 10': 0.60; 'course': 0.61; 'more': 0.64; 'teach': 0.65; 'world': 0.66; 'sample': 0.67; 'qualified': 0.72; 'homework': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=aE8fd8JXEQNeBVCuoeJj/RZGdONBwm/dbPLq1eokvz8=; b=hKDWS3FgG8mDjHrEwNNcWnJagtP0SskShahQdA5IAU2ELsdpXh9H1xf8RXX90GkkmH Tx7RT7NyI4zFzaJF15PRIzVHvBPx+01sHi38pYipnyWVZigYdJkM9cWU+HauNONLYxnb 9D9msLXLAqyYjSDoRBDlGn54B8qF3rAvBZ/wEzIqxuZECGbm22JLvN6aev/RdyTHDqZC M3hPtjoXyaKt33kLWHvE6ybWAKNPXv/HS23hwUr0s3HHMdfxppmmBdZgqg6qBhhk8b5C E1/dgiz8oyne96w83xeheJG+3WvRv1j4zN/rniSY/8ht5BNLb7VVZndbypqlNxGMr91U kp4A== MIME-Version: 1.0 X-Received: by 10.50.117.65 with SMTP id kc1mr2162281igb.34.1412377550313; Fri, 03 Oct 2014 16:05:50 -0700 (PDT) In-Reply-To: <78au2a12nlq6nipske1a327p14dvgvakug@4ax.com> References: <3c9504c9-6906-4358-b14c-5764bba70a65@googlegroups.com> <78au2a12nlq6nipske1a327p14dvgvakug@4ax.com> Date: Sat, 4 Oct 2014 09:05:50 +1000 Subject: Re: Python Basics From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1412377559 news.xs4all.nl 2837 [2001:888:2000:d::a6]:45254 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78671 On Sat, Oct 4, 2014 at 8:54 AM, Seymore4Head wrote: >>Q2. Implement a function called printNumTriangle. The function should ask the user to enter a single integer. It should then print a triangle of that size specified by the integer so that each row in the triangle is made up of the integer displayed. >> >>The following is a sample output >> >>Please enter an integer for triangle size: >>1 >>22 >>333 >>4444 >>55555 > 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 (because he's not the one creating it). He'll either run into more trouble before graduating the course, or (far worse) he'll graduate successfully, without having the competence that the course is supposed to teach - and the world will be given a qualified programmer who doesn't know his stuff. That damages the world, damages the reputation of the course, and gives python-list a reputation as a homework assignment solver... none of which I want. I'm pretty sure you don't want it either. So don't do people's homework for them. PLEASE!! ChrisA