Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!news.astraweb.com!border5.a.newsrouter.astraweb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'binary': 0.05; 'bits': 0.07; 'url:faqs': 0.09; 'subject:python': 0.11; 'looping': 0.16; 'url:catb': 0.16; 'wrote:': 0.17; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'points': 0.29; 'shift': 0.33; 'to:addr:python-list': 0.33; 'subject:?': 0.35; 'url:org': 0.36; 'subject:with': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'email addr:gmail.com': 0.63; 'received:204': 0.72 Date: Fri, 21 Sep 2012 15:54:29 +0200 From: Laszlo Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: how to do draw pattern with python? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348235680 news.xs4all.nl 6948 [2001:888:2000:d::a6]:51474 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29634 On 2012-09-21 15: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 What kinds of bits? What are these points and x-es anyway? Are they strings? Or binary data? I recommend this for reading: http://www.catb.org/esr/faqs/smart-questions.html