12345
def func(L) :
result=0
if not isinstance(L,list) and not isinstance(L,tuple):
print("you scanf is error")
elif isinstance(L,list):
for i in L :
result+=i
return result
elif isinstance(L,tuple) :
result=1
for i in L :
result*=i
return result
LLL=[1,2,3,4,5]
TTT=(1,2,3,4,5)
print(func(LLL))
print(func(TTT))