Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #67342
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@mrabarnett.plus.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; "'')": 0.09; 'rows,': 0.09; "'o',": 0.16; '2):': 0.16; 'examples:': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:192.168.1.4': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'received:84': 0.35; 'there': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'middle': 0.60; "you're": 0.61; 'first': 0.61; 'email addr:gmail.com': 0.63 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.1 cv=JLW1sq6b c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=sASEtNAQL0YA:10 a=ihvODaAuJD4A:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=pGLkceISAAAA:8 a=e4CeF68R8G6-3DnMrh0A:9 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 a=A3Q7YFllop0A:10 a=KONzjYArWswA:10 |
| X-AUTH | mrabarnett:2500 |
| Date | Sat, 01 Mar 2014 19:41:30 +0000 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Boxes of O's |
| References | <c753ba44-379b-4322-96c0-4ba5cb8fa7c1@googlegroups.com> <mailman.7529.1393701408.18130.python-list@python.org> <31bde8f6-25a6-484f-af6b-bbef7f7a0fdf@googlegroups.com> |
| In-Reply-To | <31bde8f6-25a6-484f-af6b-bbef7f7a0fdf@googlegroups.com> |
| Content-Type | text/plain; charset=UTF-8; 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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7530.1393703078.18130.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1393703078 news.xs4all.nl 2954 [2001:888:2000:d::a6]:49118 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:67342 |
Show key headers only | View raw
On 2014-03-01 19:28, geniusrko@gmail.com wrote:
> Well, This is what i got
>
> n = int(input("enter number of o: "))
>
> for i in range(n):
> print("O", end = '')
> for j in range(n* 2):
> print("O", end = '')
>
> print()
>
From the examples:
The first row has n*2 of 'o'
There are n-2 middle rows, each with 'o', then n*2-2 spaces, then 'o'
The last row has n*2 of 'o'
Incidentally, in your code you're writing 'O', not 'o'.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Boxes of O's geniusrko@gmail.com - 2014-03-01 11:12 -0800
Re: Boxes of O's Chris Angelico <rosuav@gmail.com> - 2014-03-02 06:16 +1100
Re: Boxes of O's geniusrko@gmail.com - 2014-03-01 11:28 -0800
Re: Boxes of O's MRAB <python@mrabarnett.plus.com> - 2014-03-01 19:41 +0000
Re: Boxes of O's Chris Angelico <rosuav@gmail.com> - 2014-03-02 06:54 +1100
Re: Boxes of O's geniusrko@gmail.com - 2014-03-02 06:43 -0800
Re: Boxes of O's Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-02 14:56 +0000
Re: Boxes of O's Glazner <yoavglazner@gmail.com> - 2014-03-02 13:30 -0800
Re: Boxes of O's Michael Torrie <torriem@gmail.com> - 2014-03-02 14:48 -0700
Re: Boxes of O's Dave Angel <davea@davea.name> - 2014-03-01 22:04 -0500
csiph-web