Description:
Define a function named map_squared_on_args(*args) which takes flexible integers and returns the a map object which is able to generate squared numbers among *args.
I typed this:
def map_squared_on_args(*args):
return list(map(lambda x:x**2, list(filter(lambda x: type(x)==int , args))))
And it shows:
NameError: name 'map_squared_on_args' is not defined
Please tell me how to fix that! Thanks a lot and apologize for the basic question.