Question: def process _ numbers ( lst ) : try: total = 0 for num in lst: total + = int ( num ) return total
def processnumberslst:
try:
total
for num in lst:
total int num
return total
except ValueError:
return "Error"
result processnumbers
result processnumbersa
printfResult: result Result:
result
What will be the result according to the code above?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
