2. Write a function my_mult_operation(a,b,operation). The input argument, operation , is a string that is either 'plus',
Posted: Wed Mar 30, 2022 9:28 am
3. Consider a triangle with vertices at (0,0), (1,0), and (0, 1). Write a function my_inside_triangle(x,y) where the output is the string 'outside' if the point (x, y) is outside of the triangle, 'border' if the point is exactly on the border of the triangle, and 'inside' if the point is on the inside of the triangle. In [9]: 1 def my_inside_triangle(x,y): 2 # write your function code here 3 u z w N 4. return position