Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.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.181 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.67; '*S*': 0.03; 'doing?': 0.09; 'url:faqs': 0.09; 'cc:addr:python-list': 0.11; 'def': 0.12; 'blocks': 0.16; 'url:catb': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'trying': 0.19; 'drawing': 0.19; 'meant': 0.20; 'cc:addr:python.org': 0.22; 'finally,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'board': 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'returning': 0.36; 'doing': 0.36; 'similar': 0.36; 'url:org': 0.36; 'should': 0.36; 'example,': 0.37; 'rather': 0.38; 'anything': 0.39; 'how': 0.40; 'read': 0.60; 'range': 0.61; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'goal': 0.75; 'as:': 0.81; 'etc,': 0.84; 'find.': 0.84; 'irrelevant': 0.84; 'it"': 0.84; '"how': 0.91; 'on?': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=rOFHJCFs1N5TToMtdYypIB8xx9EpVjrj5LM5CW6YmWA=; b=qQ+o3K+LU3OxWPmaVCDcfcIlIdewuL40uRTqMqQEHNqMxkhphNcaVLNNPB/vObkyrK AXdYdKcZDk/fUxMvgGjABf03tZ8oUNsHSPwdLn7YugKWRsIOelneSoKEWTNVDWSM4kdJ xFb4VgNv8Xh/qt2uCkgN5fmPImbmmsQD93IP9hNwYNBd5wFv8h9NO08LOp2/VyB+MR8M 1gVd5EKz3XZYXB/2pEv1k83LzVh4dtR8i6TL35Di5L8BoiiIkKI+kkk8RrSoyLofDrKE rCcK9kmMeJ51DAR/Ren2xncWiCqqSfjtqCZk2ECtGpQ3iCkS1XwLspBL8C0sobEOrRFV ze6Q== X-Received: by 10.152.22.232 with SMTP id h8mr2639371laf.0.1369926592329; Thu, 30 May 2013 08:09:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <7064d3fc-7641-4ecd-9fe0-9631e949fe72@googlegroups.com> References: <2eaa39b8-9e87-402a-b0c0-8c8c5d42fed7@googlegroups.com> <7064d3fc-7641-4ecd-9fe0-9631e949fe72@googlegroups.com> From: Joshua Landau Date: Thu, 30 May 2013 16:09:12 +0100 Subject: Re: User Input To: Eternaltheft Content-Type: text/plain; charset=UTF-8 Cc: python-list 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: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369926600 news.xs4all.nl 15974 [2001:888:2000:d::a6]:48875 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46501 On 30 May 2013 15:47, Eternaltheft wrote: >> And perhaps you meant for your function to CALL drawBoard(), rather than >> returning the function object drawBoard. >> >> DaveA > > do you think it would be better if i call drawBoard? Please read http://www.catb.org/esr/faqs/smart-questions.html, or anything similar you can find. Start from the beginning. 1) What are you doing? Not "what are you doing now" but, from the top, what is the goal you are trying to achieve? 2) How have you tried to do it? Code would be nice here too, but don't just send really large blocks of irrelevant code. For example, your "drawBoard" function would be better surmised as: def drawBoard(b): Turtle.speed(0) Turtle.up() Turtle.goto(-4 * b, 4 * b) Turtle.down() for i in range (8): Turtle.forward(b) Turtle.right(90) ... # etc, drawing a board 3) What are you stuck on? In this case, you are stuck on what to do after you call input("stuff"), if I understand. What do you want to do - not "how do you want to do it" but what is it that you are doing? 4) Finally, we should understand what calling drawBoard is for. Ask us again and we'll be much more likely to give good answers.