Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; '"if': 0.04; 'function,': 0.07; 'flush': 0.09; 'output': 0.10; 'am,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Help': 0.17; 'wrote:': 0.18; 'seems': 0.20; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; 'somewhere': 0.23; 'indentation': 0.23; "i'm": 0.26; 'function': 0.27; 'script': 0.28; 'message- id:@mail.gmail.com': 0.28; 'does': 0.32; 'that,': 0.33; 'fri,': 0.34; 'to:addr:python-list': 0.34; 'it.': 0.34; 'fault': 0.34; 'lie': 0.34; 'file': 0.36; 'received:209.85.161': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'should': 0.39; 'define': 0.39; "it's": 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2011': 0.61; 'your': 0.61; 'subject:program': 0.67; '30,': 0.74; 'copy-paste': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=luNVmbUTneLawbnDhd8mwr30FwAU+PFOAb5ruyo1Je0=; b=AYQa0TwgLZtXGLbC/NdULTMDaJ3npjn9zBHAfbRlBM9id3aBsmuWBmppj8le+xAhbe Oqf7+SG6zmAAxkhv4Yb97nubCZw+4F747sumUoEPzKcETzlCN4Rw0U19DweO9rykzd2c 97+3p52NkPNKNv4MQOLwM05+oQOW2Xsj7C47g= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 30 Dec 2011 03:32:55 +1100 Subject: Re: Help in rotate 13 program From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325176377 news.xs4all.nl 6984 [2001:888:2000:d::a6]:50646 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18180 On Fri, Dec 30, 2011 at 3:25 AM, Sayantan Datta wrote: > did that, but the output file is still empty? Does the fault lie somewhere > else? I'm not sure if it's a copy-paste problem, but check your indentation: your "if __name__" line seems to be indented, it should be flush left. Indentation makes it part of the function, so your script will define a function and never call it. ChrisA