Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'triangle': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'integer': 0.24; 'cc:2**0': 0.24; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'question:': 0.31; 'there.': 0.32; 'another': 0.32; "i'd": 0.34; 'but': 0.35; 'received:google.com': 0.35; 'right?': 0.36; 'doing': 0.36; 'step': 0.37; 'how': 0.40; 'range': 0.61; "you're": 0.61; '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=mipNXaoH4OHgs+KstL2KJATl5eRUwnPBbLdOHpuuJeI=; b=eV4FyjAJSsu7NMiyCJvpGVuvQJqcxdVR/Zpml63ScDowFhMyUWGvx+HgIKWqNk3JYU dICWdu3xseDDjadqR582tYQJ8UEH5aCwFh2isJmgwT2kEss+vfWAjEEIOja51wI2Hknh Y1TvUi2IG11vkK4ADcfUhb/565GaVRugjw+ytWtF0TjPZhP3tRo6JYx4soCW5WcAb56B 8zbudUIMtKP7yMB3698/qXsC4ht1561rZYlJtIwBE9Fwx29hyJqJYCP1vXe+m7LuSVBl EegsloZr6unoHL9gf5K6wrqyzkskyHxpgCyiEFDN4JuvvuzndrynqG6yGLXGmlv8djDu /2JQ== MIME-Version: 1.0 X-Received: by 10.51.17.2 with SMTP id ga2mr244241igd.2.1412358459620; Fri, 03 Oct 2014 10:47:39 -0700 (PDT) In-Reply-To: <2c198e3c-ddee-47a9-b744-a35c726cdfd2@googlegroups.com> References: <3c9504c9-6906-4358-b14c-5764bba70a65@googlegroups.com> <2c198e3c-ddee-47a9-b744-a35c726cdfd2@googlegroups.com> Date: Sat, 4 Oct 2014 03:47:39 +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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1412358462 news.xs4all.nl 2860 [2001:888:2000:d::a6]:37957 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78656 On Sat, Oct 4, 2014 at 3:44 AM, wrote: > def printNumTriangle(): > num = input("Please enter an integer for triangle size:") > for i in range(1,num+1): > for j in range (i): > print i > > Cheers!!!! Okay! You're very close, and I can see what's going on there. But I'd like you to learn how to ask questions, as well as how to write Python code, because both skills are important to your future. :) So I'm going to get you to take another step in asking the question: What is it that your code isn't doing right? ChrisA