I tried but its not working. Here's a code for sum of two numbers. Now how do i save it?
>>> #! /usr/bin/env python
...
>>> def sum(x,y):
... return x+y
...
>>> x=int(raw_input('Enter a number: '))
Enter a number: 35
>>> y=int(raw_input('Enter a number: '))
Enter a number: 7
>>> print 'sum is', sum(x,y)
sum is 42
--
http://mail.python.org/mailman/listinfo/python-list
