Question: It says that the except is an invalid syntax for this code: import pdb def func 1 ( a , b ) : return (
It says that the except is an invalid syntax for this code: import pdb
def funca b:
return a ba b
def funcsize:
digits nprandom.randint sizesize
for i in rangedigitssize :
a intdigitsi
b intdigitsi
try:
ans funca b
except ZeroDivisionError:
pdbsettrace
break
func
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
