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 intnum
return total
except ValueError:
return "Error"
printfResult: result Result: fresult
What will be the result according to the code above?
Result: Result: Error
Result: Error, Result:
Result: Result:
Result; Error, Result: Error
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
