Skip to main content

Section 12.2 Practice: Single Functions

Check Your Understanding Check Your Understanding

2.

Write a function divide() that takes two floats as arguments and returns a float, namely the first number divided by the second. Obviously, you shouldn’t be dividing by zero...
You may assume that your function is not called with such input.

admin.....open in new window

When your program performs correctly you’ll be given a keyword to enter in Canvas.