# File: a02_functions.py # your name: # your email: # # # function 0: an example of funciton definition def opposite(x): """ returns the opposite of its input input x: any number (int or float) """ return -1*x # put your definitions for the remaining functions below # This section contains test cases, which will execute your functions # and print out the results. These tests are "protected" (by indentation) within # an if statement, which will prevent them from running on the Gradescope server. # You must write all of your test cases within this indented block. if __name__ == '__main__': # make sure all of your test cases are indented by 1 tab, following the example below. # write your test code for all functions below. # for example: print('opposite(3) =', opposite(3))