Solutions will be available when this assignment is resolved, or after a few failing attempts.
Complete the function
divide, which takes two parameters
b and returns the division:
a / b. There's one special case: if the parameter
0 you should raise a
ValueError exception. You could implement it either using a
try/except or just an if statement. If you have 2 minutes to spare, try both solutions!
divide(4, 2) # 2 divide(8, 2) # 4 divide(2, 0) # ValueError Exception raised!