Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'applicable,': 0.07; 'bits': 0.07; 'plenty': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:python': 0.11; 'looping': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reproduce': 0.16; 'wrote:': 0.17; 'smallest': 0.22; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'code': 0.31; 'from:addr:yahoo.co.uk': 0.32; 'shift': 0.33; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'likely': 0.33; 'problem,': 0.35; 'subject:?': 0.35; 'received:org': 0.36; 'subject:with': 0.36; 'test': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'email addr:gmail.com': 0.63; 'cut': 0.71; 'etc..': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: how to do draw pattern with python? Date: Fri, 21 Sep 2012 14:55:30 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-221-230.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: X-Antivirus: avast! (VPS 120921-0, 21/09/2012), Outbound message X-Antivirus-Status: Clean 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: 1348236002 news.xs4all.nl 6853 [2001:888:2000:d::a6]:53524 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29636 On 21/09/2012 14:36, echo.hping@gmail.com wrote: > may i know how to shift the bits using only looping and branching?? > > x....x > .x..x. > ..xx.. > ..xx.. > .x..x. > x....x > > xx.... > ..x..x > ...xx. > ...xx. > ..x..x > xx.... > > .xx... > x..x.. > ....xx > ....xx > x..x.. > .xx... > > etc.. > You write some code and test it. If it doesn't work you cut and paste the smallest sample of code that can reproduce the problem, together with the full traceback if applicable, and you're likely to get plenty of answers. -- Cheers. Mark Lawrence.