Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.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: OK 0.052 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'def': 0.10; 'subject:python': 0.11; 'subject:programming': 0.16; 'working.': 0.17; 'input': 0.18; 'math': 0.20; 'import': 0.21; 'expand': 0.26; 'received:209.85.212': 0.28; 'asking': 0.32; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'received:209': 0.37; 'to:addr:python.org': 0.39; 'help': 0.40; 'from:no real name:2**0': 0.60; 'wish': 0.70 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:from:to:subject:date:mime-version :content-type:x-priority:x-msmail-priority:importance:x-mailer :x-mimeole; bh=fIAgbX+kwzY0Pcgmif2OE4kAyR4sg357oWQsP1NjLPE=; b=WMQGjvpUhjlN0xvU5diTrezOGmUgxnupMTTd92WPOVtZM6wonHxsUhEysJq32XK3IY bshjLXbDUZNv1BL6a0flzRAYS66ZAEhTRFVIEN1Akgvr5r+d8cjQKMTeu11wIoRykUDF f5W+w/LtBAL2Q5VN4S7Lmc6p6iWb28r++4h16+vmI6yUVYw7kNFFK/kQS3kAfNndLncP ifRRe+DfDb82qeY9Y2K+Fs0z5Z1IxeJAIK0MvjplPWBSFfTXvU8utIoF3ryhglShMw4H TEfhbl5TrXKNezxPZJccaEgS1i6mQ89nyh9IX/IUcXlNbNxhqyhE6YyjJa1UIajFUOF1 hr3A== X-Received: by 10.194.236.166 with SMTP id uv6mr109554861wjc.34.1357750425159; Wed, 09 Jan 2013 08:53:45 -0800 (PST) From: kwakukwatiah@gmail.com To: Subject: new to python and programming at large. Date: Wed, 9 Jan 2013 16:28:04 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0012_01CDEE86.4CBDADE0" 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: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357750432 news.xs4all.nl 6887 [2001:888:2000:d::a6]:40434 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36508 This is a multi-part message in MIME format. ------=_NextPart_000_0012_01CDEE86.4CBDADE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable thanks for ur help I wz able to do it.but I wish to expand it by asking = a user to input a number for the sqrt to be calculated it I dd it this = way but its not working. from math import sqrt number =3D raw_input('enter a number:') def number(y): return number(Y) thnx ------=_NextPart_000_0012_01CDEE86.4CBDADE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
thanks for ur help I wz able to do it.but I wish to expand it by = asking a=20 user to input a number for the sqrt to be calculated it I dd it this way = but its=20 not working.
 
 
from math import sqrt
number =3D raw_input('enter a number:')
def number(y):
    return number(Y)
 
 
thnx
------=_NextPart_000_0012_01CDEE86.4CBDADE0--