write a program to input a 5 digit number . calculate and print sum and product of those number which are double digit
allysia:
do you mean sum and product of those number which are 5 digit?
Answers
Answered by
0
Answer:
from functools import reduce
a = input("Enter five digit number (0,00,0,00,00) :- ")
l = a.split(",")
l = list(map(int,l))
print(reduce(lambda x,y : x+y,l))
Similar questions