Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.161 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.73; '*S*': 0.05; 'cc:addr:python-list': 0.10; 'def': 0.10; 'subject:need': 0.17; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'subject:please': 0.27; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'received:209': 0.37; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.60; 'received:199': 0.71; 'sfxlen:4': 0.84; 'pfxlen:big': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:from:to:cc:subject:date:mime-version :content-type:x-priority:x-msmail-priority:importance:x-mailer :x-mimeole; bh=dDOb1sUkz2Nmyei0lZfA8bUzoVY+O+hARiP+/iC1AO0=; b=gMVgGDnXdKod1v6SRi+NzbPLIg6R7Z8O4DRL9ICgOEFtUxuMLKCpfgj30NMBNgKVx9 PHIFCqjTSWUKofftsmmtklK/huRsfFwPpFrNE99MT1QqkY89QVSSWUUezYH50Cii25ta bFRSnoCmlk3f1a3j2xGYCQt/bNN1Kr/fU/jfsDsnDTYAmUWp7X0Yj7HPJbX/LD/SXfjA bXWu1CBT18CabF/IyV9tWvWsFT8o/jKQZdu3RbFEfZCKOkeRO9Ow64ZAxpzBgX9EIIrD X/e49lKOkBVFxmHxQJW1CiiSTuDdag2gx41Imvpk5bnWAng0XJaGHiKrGyR1wRf+/PxT x6cA== X-Received: by 10.14.202.3 with SMTP id c3mr200618119eeo.4.1357896918594; Fri, 11 Jan 2013 01:35:18 -0800 (PST) From: kwakukwatiah@gmail.com To: Cc: Subject: please i need explanation Date: Fri, 11 Jan 2013 09:35:10 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01CDEFDE.F343FDF0" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3508.1109 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3508.1109 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357897249 news.xs4all.nl 6840 [2001:888:2000:d::a6]:36254 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36610 This is a multi-part message in MIME format. ------=_NextPart_000_0016_01CDEFDE.F343FDF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable def factorial(n): if n<2: return 1 f =3D 1 while n>=3D 2: f *=3D n f -=3D 1 return f ------=_NextPart_000_0016_01CDEFDE.F343FDF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
def factorial(n):
    if n<2:
           &n= bsp;=20 return 1
    f =3D 1
    while n>=3D 2:
        f *=3D n
        f -=3D 1
    return f
 
------=_NextPart_000_0016_01CDEFDE.F343FDF0--