Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18170
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news-transit.tcx.org.uk!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'char': 0.07; '__name__': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'error:': 0.10; 'output': 0.10; "'__main__':": 0.16; 'received:dip.t-dialin.net': 0.16; 'received:t-dialin.net': 0.16; 'subject:Help': 0.17; 'wrote:': 0.18; "doesn't": 0.22; 'from:addr:web.de': 0.23; 'indentation': 0.23; 'wrong?': 0.23; 'code': 0.25; 'work,': 0.26; 'fix': 0.27; 'line:': 0.30; 'header:X -Complaints-To:1': 0.33; 'it?': 0.33; 'to:addr:python-list': 0.34; 'file': 0.36; 'received:org': 0.38; 'should': 0.39; 'help': 0.39; 'to:addr:python.org': 0.40; 'subject:program': 0.67 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Peter Otten <__peter__@web.de> |
| Subject | Re: Help in rotate 13 program |
| Date | Thu, 29 Dec 2011 14:10:16 +0100 |
| Organization | None |
| References | <CANtuMdJMfLg4VXhuSowG-Tr1yzioACLWQqJHhgi49w4sJYSNWg@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Gmane-NNTP-Posting-Host | p5084bc4c.dip.t-dialin.net |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4217.1325164220.27778.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1325164220 news.xs4all.nl 6866 [2001:888:2000:d::a6]:32804 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:18170 |
Show key headers only | View raw
Sayantan Datta wrote:
> please help me, this code doesn't work,
> the output file comes out to be empty. How do i fix it? and where is it
> going wrong?
I don't know if that's a copy-n-paste error: the indentation of
> if __name__ == '__main__' :
> for line in sys.stdin :
> for char in line :
> sys.stdout.write(rotate13_letter(char))
should be
if __name__ == '__main__':
for line in sys.stdin:
for char in line:
sys.stdout.write(rotate13_letter(char))
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Help in rotate 13 program Peter Otten <__peter__@web.de> - 2011-12-29 14:10 +0100
csiph-web