Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin1!goblin.stu.neva.ru!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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: UNSURE 0.268 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.49; '*S*': 0.03; 'root': 0.04; 'python': 0.09; 'compute': 0.09; 'recibido': 0.09; 'def': 0.10; 'subject:python': 0.11; 'assume': 0.11; 'autorizado': 0.16; 'ning\xfan': 0.16; 'parameter,': 0.16; 'revelar,': 0.16; 'rogamos': 0.16; 'subject:programming': 0.16; 'systems.': 0.18; 'math': 0.20; 'liability': 0.20; 'to:name:python-list@python.org': 0.20; 'import': 0.21; 'help.': 0.22; 'programming': 0.23; 'to:2**1': 0.23; 'so.': 0.24; 'specifically': 0.24; 'header:In- Reply-To:1': 0.25; 'addressee': 0.27; 'represent': 0.28; 'author,': 0.29; 'classes': 0.30; 'function': 0.30; 'distribute': 0.30; 'support,': 0.32; 'skip:_ 30': 0.32; 'print': 0.32; 'authorised': 0.33; 'to:addr:python-list': 0.33; 'self': 0.34; 'url:org': 0.36; 'email addr:python.org': 0.36; 'engineering': 0.36; 'should': 0.36; 'does': 0.37; 'url:rec-html40': 0.37; 'subject:: ': 0.38; 'delete': 0.38; 'que': 0.38; 'to:addr:python.org': 0.39; 'url:schemas': 0.39; 'url:office': 0.39; 'hello,': 0.39; 'url:omml': 0.39; 'url:2004': 0.39; 'url:microsoft': 0.39; 'url:12': 0.40; 'your': 0.60; 'email name :python-list': 0.62; 'necessarily': 0.63; 'skip:n 10': 0.63; 'email addr:gmail.com': 0.63; 'autor': 0.65; 'permite': 0.65; 'correo': 0.66; 'forma': 0.66; 'este': 0.68; 'stated': 0.69; 'receive': 0.71; 'internet': 0.71; 'opinions': 0.72; 'integrity': 0.75; 'usted': 0.75; 'inform': 0.78; 'addressee.': 0.78; '2013': 0.84; 'asume': 0.84; 'confidencial': 0.84; 'dicho': 0.84; 'dirige': 0.84; 'documento': 0.84; 'integridad': 0.84; 'pertenece': 0.84; 'privado': 0.84; 'recording,': 0.84; 'destinatario': 0.91; 'debe': 0.93; 'nuestro': 0.93; 'wholesale': 0.97 From: Adrian Espinosa Moreno To: "kwakukwatiah@gmail.com" , "python-list@python.org" Date: Wed, 9 Jan 2013 16:45:25 +0100 Subject: RE: new to python and programming at large Thread-Topic: new to python and programming at large Thread-Index: Ac3ufUAkwNYZG3XxRvWn337ccfDDHgAAweuw References: <5C685724E89E4591A5869A1EB99A5598@favour> In-Reply-To: <5C685724E89E4591A5869A1EB99A5598@favour> Accept-Language: es-ES Content-Language: es-ES X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: es-ES Content-Type: multipart/alternative; boundary="_000_0A05530EC8DF4244AAD8E4243ACCB24B27A2D5B806EXI1PWM2jazzt_" MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 09 Jan 2013 17:20:04 +0100 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: 271 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357748405 news.xs4all.nl 6916 [2001:888:2000:d::a6]:50333 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36503 --_000_0A05530EC8DF4244AAD8E4243ACCB24B27A2D5B806EXI1PWM2jazzt_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, you have to use the same parameter, not self which is used in classe= s def squareroot(n): return sqrt(n) -- Adri=E1n Espinosa. Engineering Support, Wholesale Systems. Jazztel.com De: kwakukwatiah@gmail.com [mailto:kwakukwatiah@gmail.com] Enviado el: mi=E9rcoles, 09 de enero de 2013 22:06 Para: python-list@python.org Asunto: new to python and programming at large pls I want to write a function that can compute for the sqrt root of any n= umber.bt it not working pls help. from math import sqrt def squareroot(self): x =3D sqrt(y) print x ________________________________ ---------------------------------------------------------------------------= ----- Este mensaje es privado y CONFIDENCIAL y se dirige exclusivamente a su dest= inatario. Si usted ha recibido este mensaje por error, no debe revelar, cop= iar, distribuir o usarlo en ning=FAn sentido. Le rogamos lo comunique al re= mitente y borre dicho mensaje y cualquier documento adjunto que pudiera con= tener. El correo electr=F3nico via Internet no permite asegurar la confiden= cialidad de los mensajes que se transmiten ni su integridad o correcta rece= pci=F3n. JAZZTEL no asume responsabilidad por estas circunstancias. Si el d= estinatario de este mensaje no consintiera la utilizaci=F3n del correo elec= tr=F3nico via Internet y la grabaci=F3n de los mensajes, rogamos lo ponga e= n nuestro conocimiento de forma inmediata.Cualquier opini=F3n expresada en = este mensaje pertenece =FAnicamente al autor remitente, y no representa nec= esariamente la opini=F3n de JAZZTEL, a no ser que expresamente se diga y el= remitente est=E9 autorizado para hacerlo. ---------------------------------------------------------------------------= ----- This message is private and CONFIDENTIAL and it is intended exclusively for= its addressee. If you receive this message in error, you should not disclo= se, copy, distribute this e-mail or use it in any other way. Please inform = the sender and delete the message and attachments from your system.Internet= e-mail neither guarantees the confidentiality nor the integrity or proper = receipt of the messages sent. JAZZTEL does not assume any liability for tho= se circumstances. If the addressee of this message does not consent to the = use of Internet e-mail and message recording, please notify us immediately.= Any views or opinions contained in this message are solely those of the aut= hor, and do not necessarily represent those of JAZZTEL, unless otherwise sp= ecifically stated and the sender is authorised to do so. ---------------------------------------------------------------------------= ----- --_000_0A05530EC8DF4244AAD8E4243ACCB24B27A2D5B806EXI1PWM2jazzt_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello, you= have to use the same parameter, not self which is used in classes

 = ;

def square= root(n):

 &nbs= p;  return sqrt(n)

 = ;

 = ;

--

Adri=E1n E= spinosa.

Engineerin= g Support, Wholesale Systems.

Jazztel.com

 <= /p>

 <= /p>

De: kwakukwati= ah@gmail.com [mailto:kwakukwatiah@gmail.com]
Enviado el: mi=E9rcoles, 09 de enero de 2013 22:06
Para: python-list@python.org
Asunto: new to python and programming at large

 

pls  I want to write a function that ca= n compute for the sqrt root of any number.bt it not working pls help.<= /o:p>

from math import sqrt

def squareroot(self):

    x =3D sqrt(y)<= /span>

    print x=




---------------------------------------------------------------------------= -----

Este mensaje es privado y CONFIDENCIAL y se dirige exclusivamente a su dest= inatario. Si usted ha recibido este mensaje por error, no debe revelar, cop= iar, distribuir o usarlo en ning=FAn sentido. Le rogamos lo comunique al re= mitente y borre dicho mensaje y cualquier documento adjunto que pudiera contener. El correo electr=F3nico via Intern= et no permite asegurar la confidencialidad de los mensajes que se transmite= n ni su integridad o correcta recepci=F3n. JAZZTEL no asume responsabilidad= por estas circunstancias. Si el destinatario de este mensaje no consintiera la utilizaci=F3n del correo electr=F3nico v= ia Internet y la grabaci=F3n de los mensajes, rogamos lo ponga en nuestro c= onocimiento de forma inmediata.Cualquier opini=F3n expresada en este mensaj= e pertenece =FAnicamente al autor remitente, y no representa necesariamente la opini=F3n de JAZZTEL, a no ser que expre= samente se diga y el remitente est=E9 autorizado para hacerlo.


---------------------------------------------------------------------------= -----


This message is private and CONFIDENTIAL and it is intended exclusively for= its addressee. If you receive this message in error, you should not disclo= se, copy, distribute this e-mail or use it in any other way. Please inform = the sender and delete the message and attachments from your system.Internet e-mail neither guarantees the co= nfidentiality nor the integrity or proper receipt of the messages sent. JAZ= ZTEL does not assume any liability for those circumstances. If the addresse= e of this message does not consent to the use of Internet e-mail and message recording, please notify us imme= diately.Any views or opinions contained in this message are solely those of= the author, and do not necessarily represent those of JAZZTEL, unless othe= rwise specifically stated and the sender is authorised to do so.


---------------------------------------------------------------------------= -----
--_000_0A05530EC8DF4244AAD8E4243ACCB24B27A2D5B806EXI1PWM2jazzt_--