Advertisement
Guest User

Untitled

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