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 = raw_input('enter a number:') def number(y): return number(Y) thnx
-- http://mail.python.org/mailman/listinfo/python-list