Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from functools import reduce
- lst = [float(item) for item in input("Enter the list items : ").split()]
- print(reduce(lambda a, b: a * b, lst))
Advertisement