i want to know the difference between filter(function,sequence) and map(function,sequence).I tried for a simple script with an function which finds the square of the number,after including separately filter and map in the script i am getting the same results for instance
<br>def squ(x):<br> return x*x<br>filter(squ,range(1,3))->1,4(output)<br>map(squ,range(1,3)->1,4(output)<br clear="all"><br>-- <br> <br> Vanam