Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def length(mapList):
- count = sum(map(lambda x : x%1 == 0, mapList))
- return count
- newList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
- print("The inputted list is: ", newList)
- print("Length of inputted list: ", length(newList))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement