Computer Science, asked by sidwiskers72, 3 months ago

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?
allysia: the question doesn't makes sense. please elaborate a bit.

Answers

Answered by pradeepr7654321
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